diff --git a/src/cutecoin/core/account.py b/src/cutecoin/core/account.py index 143a08c2596ff3ab6ca5ddee1a8054991b15b622..371aff88a0505d127d6075b35b2e27fc595eb4f2 100644 --- a/src/cutecoin/core/account.py +++ b/src/cutecoin/core/account.py @@ -439,7 +439,7 @@ class Account(QObject): selfcert = yield from identity.selfcert(community) certification = Certification(PROTOCOL_VERSION, community.currency, self.pubkey, pubkey, - blockid['number'], blockid['hash'], None) + blockid.number, blockid.sha_hash, None) key = SigningKey(self.salt, password) certification.sign(selfcert, [key]) diff --git a/src/cutecoin/core/wallet.py b/src/cutecoin/core/wallet.py index b06d95f7fcbc5be0f4726a9b9653a56d872726c3..2b4342de68642f59b22ae8cf4affc5475532eac7 100644 --- a/src/cutecoin/core/wallet.py +++ b/src/cutecoin/core/wallet.py @@ -217,9 +217,8 @@ class Wallet(QObject): :param str message: The message to send with the transfer """ blockid = yield from community.blockid() - block_number = blockid['number'] block = yield from community.bma_access.future_request(bma.blockchain.Block, - req_args={'number': block_number}) + req_args={'number': blockid.number}) time = block['medianTime'] txid = len(block['transactions']) key = None