Skip to content

Commit

Permalink
Add upper limit for coinstake reward
Browse files Browse the repository at this point in the history
Such limit should stimulate large stake holders to use smaller inputs. This will ensure the growth of the difficulty and chain's strength.
  • Loading branch information
CryptoManiac committed Aug 2, 2013
1 parent 6262d3a commit 124e4e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,12 @@ int64 GetProofOfStakeReward(int64 nCoinAge, unsigned int nBits, unsigned int nTi
else
nSubsidy = nCoinAge * nRewardCoinYear * 33 / (365 * 33 + 8);

// Set reasonable reward limit for large inputs since 20 Oct 2013
//
// This will stimulate large holders to use smaller inputs, that's good for the network protection
if(fTestNet || STAKECURVE_SWITCH_TIME < nTime)
nSubsidy = min(nSubsidy, 10 * COIN);

if (fDebug && GetBoolArg("-printcreation"))
printf("GetProofOfStakeReward(): create=%s nCoinAge=%"PRI64d" nBits=%d\n", FormatMoney(nSubsidy).c_str(), nCoinAge, nBits);
return nSubsidy;
Expand Down

0 comments on commit 124e4e8

Please sign in to comment.