Bitcoin Core computes the block subsidy in GetBlockSubsidy (src/validation.cpp): it divides the height by nSubsidyHalvingInterval, which mainnet sets to 210,000, and shifts 50 BTC, expressed in satoshis, right by that many halvings.
Sources and checks
T1Bitcoin Core src/validation.cpp, GetBlockSubsidySource code, says this directly
int halvings = nHeight / consensusParams.nSubsidyHalvingInterval;
GetBlockSubsidy, read 2026-11-20
T1Bitcoin Core src/kernel/chainparams.cpp, mainnet halving intervalSource code, says this directly
consensus.nSubsidyHalvingInterval = 210000;
CMainParams, nSubsidyHalvingInterval, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/kernel/chainparams.cpp, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/kernel/chainparams.cpp | grep -nF 'consensus.nSubsidyHalvingInterval = 210000;'bitcoin/bitcoin at f498a5a671 contains this text in src/validation.cpp, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/validation.cpp | grep -nF 'int halvings = nHeight / consensusParams.nSubsidyHalvingInterval;'Block 840,000 created 312,500,000 sats of new coins.
Run it yourself
bitcoin-cli getblockstats 840000 '["subsidy"]'Checked at block 976,783, 20 Nov 2026, 20:55 UTC: recheck, quotes 2/2, code 2/2, chain 1/1 (esplora pair agreed)
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 16:20 UTCblock 976,753
Published Revision 1, run 2026-11-20-seed-halvings-and-supply