File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3875,6 +3875,14 @@ fn test_spend_coinbase() {
38753875 } ;
38763876 insert_anchor ( & mut wallet, txid, anchor) ;
38773877
3878+ // NOTE: A transaction spending an output coming from the coinbase tx at height h, is eligible
3879+ // to be included in block h + [100 = COINBASE_MATURITY] or higher.
3880+ // Tx elibible to be included in the next block will be accepted in the mempool, used in block
3881+ // templates and relayed on the network.
3882+ // Miners may include such tx in a block when their chaintip is at h + [99 = COINBASE_MATURITY - 1].
3883+ // This means these coins are available for selection at height h + 99.
3884+ //
3885+ // By https://bitcoin.stackexchange.com/a/119017
38783886 let not_yet_mature_time = confirmation_height + COINBASE_MATURITY - 2 ;
38793887 let maturity_time = confirmation_height + COINBASE_MATURITY - 1 ;
38803888
You can’t perform that action at this time.
0 commit comments