enable getting the whole claim trie

This commit is contained in:
Jimmy Kiselak 2016-02-22 14:24:49 -05:00
parent c32f8d0998
commit b419b8f642

View file

@ -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)