Skip to content

Commit

Permalink
targets only the testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-at-decenomy committed May 22, 2024
1 parent 941cd85 commit fcb300b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rewards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ bool CRewards::ConnectBlock(CBlockIndex* pindex, CAmount nSubsidy, CCoinsViewCac
const auto nCirculatingTargetEmission = ((nCirculatingSupply / (365LL * nBlocksPerDay)) / 1000000) * nCirculatingEmissionRate * nRewardAdjustmentInterval;
oss << "nCirculatingTargetEmission: " << FormatMoney(nCirculatingTargetEmission) << std::endl;
const auto nTargetEmission =
nHeight >= 1330000 ?
params.IsTestNet() && nHeight >= 1330000 ?
(nSupplyTargetEmission + nCirculatingTargetEmission) / 2LL :
std::max(nSupplyTargetEmission, nCirculatingTargetEmission);
oss << "nTargetEmission: " << FormatMoney(nTargetEmission) << std::endl;
Expand Down

0 comments on commit fcb300b

Please sign in to comment.