forked from LBRYCommunity/lbry-sdk
fix history hash
This commit is contained in:
parent
b62c5c57af
commit
4d0ecd1fb4
1 changed files with 2 additions and 3 deletions
|
@ -169,9 +169,8 @@ class BaseLedger(metaclass=LedgerRegistry):
|
|||
|
||||
async def get_local_status(self, address):
|
||||
address_details = await self.db.get_address(address=address)
|
||||
history = address_details['history'] or ''
|
||||
h = sha256(history.encode())
|
||||
return hexlify(h)
|
||||
history = address_details['history']
|
||||
return hexlify(sha256(history.encode())).decode() if history else None
|
||||
|
||||
async def get_local_history(self, address):
|
||||
address_details = await self.db.get_address(address=address)
|
||||
|
|
Loading…
Reference in a new issue