Yes, you heard it right.
Because of a quick in C++, the code that enforces the halvings did not work as intended. After the last halving, the cycle of halvings would have restarted resulting in more than 21M bitcoins.
https://m.stacker.news/11942 https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp#L1672
We do think this was not Satoshis original intent and in 2014 this was fixed with BIP42. https://github.com/bitcoin/bips/blob/master/bip-0042.mediawiki
Funny enough the BIP was released on the 1st of April and its definitely the most jokish BIP ever written.
In the whitepaper
So basically Pieter Wuille the author of BIP-0042 didn't properly understand Satoshi's intent. And wrote that BIP in 2014.
I think the line I copy pasted from the whitepaper, make it clear that Satoshi did propose that that in the whitepaper.
Ah! I didn't read the 1st of April joke part.
Apparently I always feel other people don't read and it is actually me who does not read.
We know for a fact Satoshis wanted 21m, and this was a bug. Even though "Satoshi wanted" arguments are irrelevant.
Even though the BIP has a jokeish tone, it really was merged and is in Bitcoin Core.
https://old.reddit.com/r/Bitcoin/comments/94r41n/satoshi_did_not_propose_the_21_million_setsupply/
BIP42 is not where the 21 million supply comes from. If you read any document about Bitcoin's early history the 21 million limit is almost universally mentioned. I guess there are many people these days that didn't know Bitcoin before 2014, but it wasn't that long ago. It seems completely unrealistic to think the Bitcoin ecosystem would ever have accepted such a dramatic change in its economic policy. Having the policy being fixed in stone and beyond influence of a central bank - or anyone - is one of Bitcoin's primary selling points.
Furthermore, BIP42 doesn't even claim that it is the origin of the 21 million limit. It claims (jokingly) that Bitcoin was designed to look like it had a 21 million limit, but through underhanded programming didn't actually do that.
The reality is that ever since the January 2009 release of the software, the 21 million limit was there, coded in by Satoshi. In March 2014, "ditto-b" on Github noticed a bug in the implementation in Bitcoin Core (and not in other software), that would result to start another cycle of 21 million bitcoins to be issued 250 years in the future. We took advantage of that situation to write an April's Fools BIP that proposed his fix as an actual consensus rule change (which was correct), but also incorrectly misrepresented reality as that bug being intentional.
What a neat little tidbit of info! Thanks for the BIP link, that shit's hilarious 😂
yw
Glad they caught it in time. That was close!
:))))
Btw in the conversation for fixing this, Peter Todd, is like I think we should think about 250 years more, which is not that crazy.
https://github.com/bitcoin/bitcoin/pull/3842#issuecomment-37266536
#574451
The "MAX_MONEY" constant in Bitcoin's code represents a sanity check limit, not an exact hard-coded cap on the total supply of bitcoins. Here are the key points:
In essence, the MAX_MONEY constant provides an upper bound for validation purposes, while the precise maximum supply emerges from the diminishing block reward schedule hardcoded into Bitcoin's protocol rules.[1][2][3]
Sources [1] Bitcoin Optech Newsletter #270 https://bitcoinops.org/en/newsletters/2023/09/27/ [2] Where is the bitcoin source code is the 21 million hard cap stated? https://bitcoin.stackexchange.com/questions/119475/where-is-the-bitcoin-source-code-is-the-21-million-hard-cap-stated [3] Total coin supply, how it works, and what the code means? https://stackoverflow.com/questions/47876960/total-coin-supply-how-it-works-and-what-the-code-means [4] The 21 Million Bitcoin Myth: Understanding the Code Behind It https://blog.bitwage.com/21-million-bitcoin-myth/ [5] Technical question about Bitcoin code regarding fixed supply of 21 ... https://www.reddit.com/r/Bitcoin/comments/gcmws5/technical_question_about_bitcoin_code_regarding/?rdt=36630
Why use the term "42 Halfmillion"?
I just turned to my 17 year old "Did you know Bitcoin Core did not initially have a 21M cap limit?". Straight off the bat he said "I did, yeah, I remember reading about that" What a geek LOL Makes me proud XD Thanks for the links, I'm sending them onto him.
deleted by author
I never claimed Bitcoin did not have a limit, I said Bitcon Core, which is a specific implementation that had this bug.
I do remember at some point some people were making some theories what if this was on purpose bla bla, but no serious person really considered that.
10 minutes per block: 21000000 / (50 BTC * 24hrs * 365days * 4years * 2) = 5.99 blocks/hour
?
Sorry, I misread that sentence. Fixed.
deleted by author