Skip to content

Commit

Permalink
prepare genesis block
Browse files Browse the repository at this point in the history
  • Loading branch information
Billy committed Jun 1, 2022
1 parent 593c8cc commit eba93be
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1326,12 +1326,8 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
if (halvings >= 64)
return 0;

CAmount nSubsidy;
if (nHeight == 1)
nSubsidy = 4000000 * COIN;
else
nSubsidy = 45 * COIN;
// Subsidy is cut in half every 2,100,000 blocks which will occur approximately every 4 years.
CAmount nSubsidy = 45 * COIN;
// Subsidy is cut in half every 1,600,000 blocks which will occur approximately every 3 years.
nSubsidy >>= halvings;
return nSubsidy;
}
Expand Down

0 comments on commit eba93be

Please sign in to comment.