[#MAX_MONEY]
= MAX&lowbar;MONEY
:mrdocs:

No amount larger than this (in satoshi) is valid&period;

== Synopsis

Declared in `&lt;consensus&sol;amount&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
inline constexpr xref:CAmount.adoc[CAmount] MAX&lowbar;MONEY = &lcub;21&apos;000&apos;000 &ast; COIN&rcub;;
----

== 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&period; As this sanity check is used by consensus&hyphen;critical validation code, the exact value of the MAX&lowbar;MONEY constant is consensus critical&semi; 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&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
