Skip to content

Commit

Permalink
contrib/signet/miner: add note on coinbasetxn/extra coinbase outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelrogstad committed Dec 27, 2024
1 parent 779a73d commit 169a5ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/signet/miner
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ def generate_psbt(tmpl, reward_spk, *, blocktime=None, poolid=None, extra_vouts=
cbtx = CTransaction()
cbtx.vin = [CTxIn(COutPoint(0, 0xffffffff), scriptSig, 0xffffffff)]
cbtx.vout = [CTxOut(tmpl["coinbasevalue"], reward_spk)]
# TODO: find extra outputs from the block template, under the "coinbasetxn" field.
# Not sure precisely how that looks. Should be integrated into the BIP300/301 enforcer
# first?
if extra_vouts is not None:
cbtx.vout.extend(extra_vouts)

Expand Down

0 comments on commit 169a5ab

Please sign in to comment.