Nostr is giving me Antonopolous fugue vibes, getting sucked in like a mofo, zapping coffees all around the place, loving the energy, even getting me to finally sign up here. Lfg
Waiting to hear back on a job interview I had last week. I thought it went well, so hoping for an offer. In the meantime, I'm trying to line up more interviews. Had an HR screening yesterday I thought went decently. This afternoon, I have a call with a recruiter about a position at a mystery company. Tbh, I'm not excited about it, but beggars can't be choosers.
I feel you bud, when I graduated in 2019 it took me almost half a year of job hunting just to land an interview (went to a good uni, in a good program). Glad that grind is done with
Yeah, I'm at the 5 month mark. To complicate matters, my kid is starting daycare in two weeks, but if I don't have an offer in hand before then, we don't have a way to pay for it, and she goes back to the bottom of the wait-list. Which means she may not be able to start until August.
Sorry if that's TMI. The reality of it all is just hitting me.
Just trying out to write the program code for the next Bitcoin Halving (fourth halving in 2024) that is using C programming language.
Making the use of The GetBlockSubsidy() function;
CAmount GetBlockSubsidy(int nHeight, const Concensus::Params& consensusParams)
{
int halvings = nHeight / consensusParams.nSubsidyHalvingInterval;
// Force block reward to zero when right shiftis undefined.
if (halvings >= 64)
return 0;
cAmount nSubsidy = 50 * COIN;
//Subsidy is cut in half every after 210, 000 blocks which will occur approximately every four years
nSubsidy >>= halvings;
return nSubsidy
}
Hints:
consensusParams.nSubsidyHalvingInterval means consensus rules everyone on the bitcoin network needs to honour.
consensus.nSubsidyHalvingInterval = 210, 000; i.e every 210, 000 blocks a halving occurs
nHeight is the current block height or the number of blocks that have already happen
Soon, we shall reach block 840,000 i.e 210,000*4, At this point (Year 2024) the equation becomes
Int halvings = 840,000/210,000; which will give halvings the value of 4 (the fourth time the network shall halved)
if (halvings >= 64)
return 0; i.e Force block reward to zero when right shift is undefined and once there have been 64 halvings, there should be no further nSubsidy released
cAmount nSubsidy = 50 * COIN;
nSubsidy >>= halvings;
return nSubsidy; this means that:
cAmount nSubsidy = 50 * 100000000; (each coin is divided into 100, 000, 000 units)
nSubsidy >>=4;
return nSubsidy i.e At the very start, 50 Bitcoin were rewarded for every block found on the network. Then after 210, 000 blocks (first halving) 25 Bitcoin was rewarded. 12.5 Bitcoin reward for the second halving. Third halving which is where we are today, the reward is 6.25 Bitcoin. Therefore, for the fourth halving which is in the year 2024 the reward shall be 3.125 Bitcoin.
Any constructive additions or subtractions are welcome!