diff --git a/src/cutecoin/core/txhistory.py b/src/cutecoin/core/txhistory.py index 3f8fae1a69c083ba5a97626ded3cdcca637feea5..f32b0e035511a735fdeb0a62276587eb07acdc47 100644 --- a/src/cutecoin/core/txhistory.py +++ b/src/cutecoin/core/txhistory.py @@ -136,8 +136,7 @@ class TxHistory(): :param list received_list: List of transactions received """ parsed_block = self.latest_block - block_data = yield from community.blockid() - current_block = block_data['number'] + current_block = community.network.latest_block logging.debug("Refresh from : {0} to {1}".format(self.latest_block, current_block)) new_transfers = [] # Lets look if transactions took too long to be validated diff --git a/src/cutecoin/core/wallet.py b/src/cutecoin/core/wallet.py index cc8aadcc5d8253a22490f833a6dc21cb1bfb0914..3d996beef8d0d8378ccd1699cca50180fbac6e15 100644 --- a/src/cutecoin/core/wallet.py +++ b/src/cutecoin/core/wallet.py @@ -114,7 +114,7 @@ class Wallet(QObject): :param community: The community to refresh its cache """ logging.debug("Refresh transactions for {0}".format(self.pubkey)) - asyncio.async(self.caches[community.currency].refresh_identities(community, received_list)) + asyncio.async(self.caches[community.currency].refresh(community, received_list)) def check_password(self, salt, password): """