diff --git a/CHANGELOG.md b/CHANGELOG.md index 3825a4e9c..6ec357456 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,7 +25,7 @@ at anytime. * ### Added - * + * `is_locked` to `wallet` in `status` response * ### Removed diff --git a/lbrynet/daemon/Components.py b/lbrynet/daemon/Components.py index e109c7b0f..06344a151 100644 --- a/lbrynet/daemon/Components.py +++ b/lbrynet/daemon/Components.py @@ -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 diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index f6fd36ec2..65b176d35 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -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,