don't wait for wallet sync in rpc commands; instead, show wallet status in status command
This commit is contained in:
parent
026f9312a7
commit
3bed2e3106
|
@ -443,7 +443,7 @@ class Commands:
|
|||
time_str = datetime.datetime.fromtimestamp(timestamp).isoformat(' ')[:-3]
|
||||
except Exception:
|
||||
time_str = "----"
|
||||
label, is_default_label = self.wallet.get_label(tx_hash)
|
||||
label = self.wallet.get_label(tx_hash)
|
||||
out.append({
|
||||
'txid':tx_hash,
|
||||
'timestamp':timestamp,
|
||||
|
|
|
@ -103,7 +103,7 @@ class Daemon(DaemonThread):
|
|||
'nodes': self.network.get_interfaces(),
|
||||
'connected': self.network.is_connected(),
|
||||
'auto_connect': p[4],
|
||||
'wallets': self.wallets.keys(),
|
||||
'wallets': dict([ (k, w.is_up_to_date()) for k, w in self.wallets.items()]),
|
||||
}
|
||||
elif sub == 'stop':
|
||||
self.stop()
|
||||
|
@ -140,8 +140,6 @@ class Daemon(DaemonThread):
|
|||
cmdname = config.get('cmd')
|
||||
cmd = known_commands[cmdname]
|
||||
wallet = self.load_wallet(config) if cmd.requires_wallet else None
|
||||
if wallet:
|
||||
wallet.wait_until_synchronized()
|
||||
# arguments passed to function
|
||||
args = map(lambda x: config.get(x), cmd.params)
|
||||
# decode json arguments
|
||||
|
|
Loading…
Reference in New Issue