Oddbean new post about | logout
 The greatest part of the code imo is the subsidy halving method where is never directly stated the amount of #bitcoin mined after every halving. Instead, it starts with the original 5B #sats per block subsidy and the method just takes that amount in binary and eliminates the last bit of it, making it halved every time without stating the real amount left. That’s a masterpiece of code.