enable getting the whole claim trie
This commit is contained in:
parent
c32f8d0998
commit
b419b8f642
1 changed files with 5 additions and 0 deletions
|
@ -972,6 +972,11 @@ class LBRYumWallet(LBRYWallet):
|
|||
def _get_balance_for_address(self, address):
|
||||
return defer.succeed(Decimal(self.wallet.get_addr_received(address))/COIN)
|
||||
|
||||
def get_nametrie(self):
|
||||
cmd = known_commands['getnametrie']
|
||||
func = getattr(self.cmd_runner, cmd.name)
|
||||
return threads.deferToThread(func)
|
||||
|
||||
def _save_wallet(self, val):
|
||||
d = threads.deferToThread(self.wallet.storage.write)
|
||||
d.addCallback(lambda _: val)
|
||||
|
|
Loading…
Reference in a new issue