Outputs of a Bitcoin coinbase transaction, which pays the block reward, cannot be spent until 100 more blocks have been mined. Bitcoin Core enforces this consensus rule with COINBASE_MATURITY set to 100 blocks, checked in Consensus::CheckTxInputs.
Sources and checks
T1Bitcoin Core src/consensus/consensus.h, COINBASE_MATURITYSource code, says this directly
Coinbase transaction outputs can only be spent after this number of new blocks (network rule)
COINBASE_MATURITY and its comment, read 2026-11-20
T1Bitcoin Core src/consensus/tx_verify.cpp, Consensus::CheckTxInputsSource code, says this directly
if (coin.IsCoinBase() && nSpendHeight - coin.nHeight < COINBASE_MATURITY) {
Consensus::CheckTxInputs, coinbase maturity check, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/consensus/consensus.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/consensus/consensus.h | grep -nF 'inline constexpr int COINBASE_MATURITY = 100;'bitcoin/bitcoin at f498a5a671 contains this text in src/consensus/tx_verify.cpp, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/consensus/tx_verify.cpp | grep -nF 'bad-txns-premature-spend-of-coinbase'Checked at block 976,842, 21 Nov 2026, 04:28 UTC: recheck, quotes 2/2, code 2/2
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 16:42 UTCblock 976,753
Published Revision 1, run 2026-11-20-seed-utxo-model