December 2018
Beginner to intermediate
564 pages
17h 34m
English
In the validation.cpp file, the following parameters should be edited:
The block value should be changed in the GetBlockSubsidy() function:
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;}
Read now
Unlock full access