Did you know that #Bitcoin Core did NOT initially have a 21M cap limit?

Because of a C++ quirk, the original code that enforces the halvings would have restarted the halvings after the last halving, around 2214.

This was fixed with BIP42 in 2014.

(fix in pic)

Reply to this note

Please Login to reply.

Discussion

I think it’s undefined behaviour in C++, may differ between compilers and platforms, so would possibly lead into network split in the future.

Indeed.

BIP42 is a great read too! https://bips.xyz/42

Agree!

I never knew a BIP could be so ... Sassy.

> This style relies less heavily on clever C++ and is more familiar to the Core Dev Team who are primarily PHP programmers.