create coinbase transaction

This commit is contained in:
admin 2018-02-12 13:06:51 +04:00
parent 24267213c6
commit 0f5bc49272

View File

@ -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: