From faf30cdac484bd9d8560026e53700ddb9c67495b Mon Sep 17 00:00:00 2001 From: 4tochka Date: Sun, 1 Apr 2018 01:36:48 +0400 Subject: [PATCH] block template class --- pybtc/blockchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybtc/blockchain.py b/pybtc/blockchain.py index 7716120..913719e 100644 --- a/pybtc/blockchain.py +++ b/pybtc/blockchain.py @@ -901,7 +901,7 @@ class BlockTemplate(): cbh = double_sha256(unhexlify(cb)) merkle_root = merkleroot_from_branches(self.merkle_branches, cbh) header = version + prev_hash + merkle_root + time + bits + nonce - block = hexlify(header) + block = hexlify(header).decode() block += cb for t in self.transactions: block += t["data"]