pull down to refresh
When would "right shift [be] undefined"?
reply
When 64 halvings have occurred. You can't shift a 64-bit number (nSubsidy) more than 64 times:
You can do a left shift greater than or equal to 64-bits by doing exactly what you're doing.
This, of course, won't result in anything usable (either the original value, zero, or something else), and is undefined behavior, so don't do it.
reply
deleted by author
deleted by author
Incredible what stupid things people in such high positions can say... Or how stupid they believe everyone else is.
reply
deleted by author
deleted by author
Recently, Jamie Dimon made an interview with CNBC where he stated that "bitcoin is a ponzi scheme" and then asked "I'll just challenge the group to one other thing: how do you know it ends at 21 million?" but that was october 2021 and now in Davos, he's currently with the same speech.
As Jameson Loop stated, it's just 5 lines of codes, like this since line 1068:
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams) { int halvings = nHeight / consensusParams.nSubsidyHalvingInterval; // Force block reward to zero when right shift is undefined. if (halvings >= 64) return 0; CAmount nSubsidy = 50 * COIN; // Subsidy is cut in half every 210,000 blocks which will occur approximately every 4 years. nSubsidy >>= halvings; return nSubsidy;And the second one: it's up to you. Yes, you, the one who's reading this. No joke. With your node, you'll verify every transaction, contribute to secure the network and most important of all thing, you are directly contributing to decentralize bitcoin because you're verifying ~10 minutes that only exists 21 millions bitcoin. At Reddit, Peter Wuillie stated:
If you want to play with the blockchain finally, here's some tools you can use.