pull down to refresh
649 sats \ 3 replies \ @antic 13 Nov 2023 \ on: The Current Version of Bitcoin Source Code bitcoin
The most important part: https://github.com/bitcoin/bitcoin/blob/8243762700bc6e7876ae5d4fc000500858b99f66/src/validation.cpp#L1668-L1679
No less important than halvings.
/** No amount larger than this (in #satoshi) is valid.
*
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.
*/
reply
This is a good point--and also makes it clear why it's somewhat difficult (but not impossible) to change the number of decimals that make up the smallest unit on chain--it's not simply changing BITCOINS/100000000 (8 zeros) to BITCOINS/1000000000 (9 zeros).
reply
thank you. This is what i was looking for.
reply