mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-23 17:27:25 +00:00
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
|
### Added
|
||||||
*
|
* `is_locked` to `wallet` in `status` response
|
||||||
*
|
*
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
|
@ -322,7 +322,8 @@ class WalletComponent(Component):
|
||||||
'blocks': local_height,
|
'blocks': local_height,
|
||||||
'blocks_behind': remote_height - local_height,
|
'blocks_behind': remote_height - local_height,
|
||||||
'best_blockhash': best_hash,
|
'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
|
@defer.inlineCallbacks
|
||||||
|
|
|
@ -705,7 +705,8 @@ class Daemon(AuthJSONRPCServer):
|
||||||
'blocks': (int) local blockchain height,
|
'blocks': (int) local blockchain height,
|
||||||
'blocks_behind': (int) remote_height - local_height,
|
'blocks_behind': (int) remote_height - local_height,
|
||||||
'best_blockhash': (str) block hash of most recent block,
|
'best_blockhash': (str) block hash of most recent block,
|
||||||
'is_encrypted': (bool)
|
'is_encrypted': (bool),
|
||||||
|
'is_locked': (bool),
|
||||||
},
|
},
|
||||||
'dht': {
|
'dht': {
|
||||||
'node_id': (str) lbry dht node id - hex encoded,
|
'node_id': (str) lbry dht node id - hex encoded,
|
||||||
|
|
Loading…
Add table
Reference in a new issue