add is_locked to status

This commit is contained in:
Jack Robison 2018-08-12 22:04:48 -04:00
parent 1098ca0494
commit 153022a1a7
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
3 changed files with 5 additions and 3 deletions

View file

@ -25,7 +25,7 @@ at anytime.
*
### Added
*
* `is_locked` to `wallet` in `status` response
*
### Removed

View file

@ -322,7 +322,8 @@ class WalletComponent(Component):
'blocks': local_height,
'blocks_behind': remote_height - local_height,
'best_blockhash': best_hash,
'is_encrypted': self.wallet.wallet.use_encryption
'is_encrypted': self.wallet.wallet.use_encryption,
'is_locked': not self.wallet.is_wallet_unlocked,
})
@defer.inlineCallbacks

View file

@ -705,7 +705,8 @@ class Daemon(AuthJSONRPCServer):
'blocks': (int) local blockchain height,
'blocks_behind': (int) remote_height - local_height,
'best_blockhash': (str) block hash of most recent block,
'is_encrypted': (bool)
'is_encrypted': (bool),
'is_locked': (bool),
},
'dht': {
'node_id': (str) lbry dht node id - hex encoded,