Sunday 3 May 2020

Where the halving will happen in the Bitcoin code (technical)


From Andreas Livestream: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;}https://youtu.be/nXwiG783A5A?t=592Code: https://bit.ly/3aYtUx1 via /r/Bitcoin https://bit.ly/2zLQoEy

No comments :

Post a Comment