From 4d0ecd1fb42cf33f89d608d96c333d5e7c3eb28a Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 17 Oct 2018 19:37:33 -0300 Subject: [PATCH] fix history hash --- torba/baseledger.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/torba/baseledger.py b/torba/baseledger.py index b168e1ec6..5d9dc1b0a 100644 --- a/torba/baseledger.py +++ b/torba/baseledger.py @@ -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)