Skip to content

Commit d3e8239

Browse files
committed
Remove the unused GetProofOfStakeMaxReward.
1 parent b2c919a commit d3e8239

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/main.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2078,16 +2078,6 @@ double GetMagnitudeMultiplier(int64_t nTime)
20782078
return magnitude_multiplier;
20792079
}
20802080

2081-
2082-
int64_t GetProofOfStakeMaxReward(uint64_t nCoinAge, int64_t nFees, int64_t locktime)
2083-
{
2084-
int64_t nInterest = nCoinAge * GetCoinYearReward(locktime) * 33 / (365 * 33 + 8);
2085-
nInterest += 10*COIN;
2086-
int64_t nBoinc = (GetMaximumBoincSubsidy(locktime)+1) * COIN;
2087-
int64_t nSubsidy = nInterest + nBoinc;
2088-
return nSubsidy + nFees;
2089-
}
2090-
20912081
// miner's coin stake reward based on coin age spent (coin-days)
20922082
int64_t GetConstantBlockReward(const CBlockIndex* index)
20932083
{
@@ -3074,8 +3064,6 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck, boo
30743064
if (!vtx[1].GetCoinAge(txdb, nCoinAge))
30753065
return error("ConnectBlock[] : %s unable to get coin age for coinstake", vtx[1].GetHash().ToString().substr(0,10).c_str());
30763066

3077-
double dCalcStakeReward = CoinToDouble(GetProofOfStakeMaxReward(nCoinAge, nFees, nTime));
3078-
30793067
//9-3-2015
30803068
double dMaxResearchAgeReward = CoinToDouble(GetMaximumBoincSubsidy(nTime) * COIN * 255);
30813069

0 commit comments

Comments
 (0)