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):
|
async def get_local_status(self, address):
|
||||||
address_details = await self.db.get_address(address=address)
|
address_details = await self.db.get_address(address=address)
|
||||||
history = address_details['history'] or ''
|
history = address_details['history']
|
||||||
h = sha256(history.encode())
|
return hexlify(sha256(history.encode())).decode() if history else None
|
||||||
return hexlify(h)
|
|
||||||
|
|
||||||
async def get_local_history(self, address):
|
async def get_local_history(self, address):
|
||||||
address_details = await self.db.get_address(address=address)
|
address_details = await self.db.get_address(address=address)
|
||||||
|
|
Loading…
Reference in a new issue