[#MAX_MONEY] = MAX_MONEY :mrdocs: No amount larger than this (in satoshi) is valid. == Synopsis Declared in `<consensus/amount.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr xref:CAmount.adoc[CAmount] MAX_MONEY = {21'000'000 * COIN}; ---- == Description Note that this constant is _not_ the total money supply, which in Bitcoin currently happens to be less than 21,000,000 BTC for various reasons, but rather a sanity check. As this sanity check is used by consensus‐critical validation code, the exact value of the MAX_MONEY constant is consensus critical; in unusual circumstances like a(nother) overflow bug that allowed for the creation of coins out of thin air modification could lead to a fork. [.small]#Created with https://www.mrdocs.com[MrDocs]#