minor fixes
This commit is contained in:
8
electrum
8
electrum
@@ -347,9 +347,9 @@ if __name__ == '__main__':
|
|||||||
if raw_input("Are you sure you want to continue? (y/n) ") in ['y','Y','yes']:
|
if raw_input("Are you sure you want to continue? (y/n) ") in ['y','Y','yes']:
|
||||||
wallet.config.path = ns
|
wallet.config.path = ns
|
||||||
wallet.seed = ''
|
wallet.seed = ''
|
||||||
wallet.config.set_key('seed', '', True)
|
wallet.storage.put('seed', '', True)
|
||||||
wallet.use_encryption = False
|
wallet.use_encryption = False
|
||||||
wallet.config.set_key('use_encryption', wallet.use_encryption, True)
|
wallet.storage.put('use_encryption', wallet.use_encryption, True)
|
||||||
for k in wallet.imported_keys.keys(): wallet.imported_keys[k] = ''
|
for k in wallet.imported_keys.keys(): wallet.imported_keys[k] = ''
|
||||||
wallet.config.set_key('imported_keys',wallet.imported_keys, True)
|
wallet.config.set_key('imported_keys',wallet.imported_keys, True)
|
||||||
print_msg("Done.")
|
print_msg("Done.")
|
||||||
@@ -358,12 +358,12 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
elif cmd == 'getconfig':
|
elif cmd == 'getconfig':
|
||||||
key = args[1]
|
key = args[1]
|
||||||
print_msg(wallet.config.get(key))
|
print_msg(config.get(key))
|
||||||
|
|
||||||
elif cmd == 'setconfig':
|
elif cmd == 'setconfig':
|
||||||
key, value = args[1:3]
|
key, value = args[1:3]
|
||||||
if key not in ['seed', 'seed_version', 'master_public_key', 'use_encryption']:
|
if key not in ['seed', 'seed_version', 'master_public_key', 'use_encryption']:
|
||||||
wallet.config.set_key(key, value, True)
|
config.set_key(key, value, True)
|
||||||
print_msg(True)
|
print_msg(True)
|
||||||
else:
|
else:
|
||||||
print_msg(False)
|
print_msg(False)
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class NetworkDialog(QDialog):
|
|||||||
|
|
||||||
if parent:
|
if parent:
|
||||||
if interface.is_connected:
|
if interface.is_connected:
|
||||||
status = _("Connected to")+" %s"%(interface.host) + "\n%d "%(parent.wallet.verifier.height)+_("blocks")
|
status = _("Connected to")+" %s"%(interface.host) + "\n%d "%(parent.wallet.verifier.blockchain.height)+_("blocks")
|
||||||
else:
|
else:
|
||||||
status = _("Not connected")
|
status = _("Not connected")
|
||||||
server = interface.server
|
server = interface.server
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ a SimpleConfig instance then reads the wallet file.
|
|||||||
# init path
|
# init path
|
||||||
self.init_path(options)
|
self.init_path(options)
|
||||||
|
|
||||||
print "user dir", self.user_dir
|
print_error( "user dir", self.user_dir)
|
||||||
|
|
||||||
|
|
||||||
def init_path(self, options):
|
def init_path(self, options):
|
||||||
|
|||||||
Reference in New Issue
Block a user