add is_locked to status
This commit is contained in:
parent
1098ca0494
commit
153022a1a7
3 changed files with 5 additions and 3 deletions
|
@ -25,7 +25,7 @@ at anytime.
|
|||
*
|
||||
|
||||
### Added
|
||||
*
|
||||
* `is_locked` to `wallet` in `status` response
|
||||
*
|
||||
|
||||
### Removed
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue