From 0f5bc49272ddf9b56e9f18699971d9554788f40d Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 12 Feb 2018 13:06:51 +0400 Subject: [PATCH] create coinbase transaction --- pybtc/blockchain.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pybtc/blockchain.py b/pybtc/blockchain.py index bdf4a0e..3a746c8 100644 --- a/pybtc/blockchain.py +++ b/pybtc/blockchain.py @@ -641,6 +641,7 @@ class Block(): else: tx.tx_out.append(Output(o[0], o[1])) tx.tx_out.append(Output(0, b'j$\xaa!\xa9\xed' + commitment)) + tx.coinbase = True tx.recalculate_txid() if insert: if self.transactions[0].coinbase: