ramp up block rewards during test window
This commit is contained in:
parent
3b5a316c64
commit
76b40a0ab4
1 changed files with 10 additions and 2 deletions
12
src/main.cpp
12
src/main.cpp
|
@ -1106,10 +1106,18 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
|
|||
{
|
||||
if (nHeight == 0)
|
||||
{
|
||||
return 350000000 * COIN;
|
||||
return 400000000 * COIN;
|
||||
}
|
||||
else if (nHeight <= 5000)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else if (nHeight <= 55000)
|
||||
{
|
||||
return ceil((nHeight - 5000) / 100);
|
||||
}
|
||||
CAmount nStartingSubsidy = 500 * COIN;
|
||||
int nLevel = (nHeight - 1) / consensusParams.nSubsidyLevelInterval;
|
||||
int nLevel = (nHeight - 55001) / consensusParams.nSubsidyLevelInterval;
|
||||
int nReduction = ((-1 + (int)sqrt((8 * nLevel) + 1)) / 2);
|
||||
while (!(withinLevelBounds(nReduction, nLevel)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue