Bitcoin Core's MAX_MONEY constant of 21,000,000 BTC is a sanity check on amounts, not the total money supply: its source comment says the supply in Bitcoin currently happens to be less than 21,000,000 BTC for various reasons.
Sources and checks
T1Bitcoin Core src/consensus/amount.h, MAX_MONEYSource code, says this directly
Note that this constant is *not* the total money supply, which in Bitcoin
MAX_MONEY comment, read 2026-11-20
T1Bitcoin Core src/consensus/amount.h, MAX_MONEYSource code, says this directly
inline constexpr CAmount MAX_MONEY{21'000'000 * COIN};
MAX_MONEY definition, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/consensus/amount.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/amount.h | grep -nF 'inline constexpr CAmount MAX_MONEY{21'"'"'000'"'"'000 * COIN};'Checked at block 976,783, 20 Nov 2026, 20:55 UTC: recheck, quotes 2/2, code 1/1
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