Skip to content

Commit f7d975f

Browse files
committed
Remove unused GetProofOfWorkReward() function
1 parent e50f7b0 commit f7d975f

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

src/main.cpp

-21
Original file line numberDiff line numberDiff line change
@@ -1857,27 +1857,6 @@ double CalculatedMagnitude2(std::string cpid, int64_t locktime,bool bUseLederstr
18571857
return bUseLederstrumpf ? LederstrumpfMagnitude2(stDPOR.Magnitude,locktime) : stDPOR.Magnitude;
18581858
}
18591859

1860-
1861-
1862-
// miner's coin base reward
1863-
int64_t GetProofOfWorkReward(int64_t nFees, int64_t locktime, int64_t height)
1864-
{
1865-
//NOTE: THIS REWARD IS ONLY USED IN THE POW PHASE (Block < 8000):
1866-
int64_t nSubsidy = CalculatedMagnitude(locktime,true) * COIN;
1867-
if (fDebug && GetBoolArg("-printcreation"))
1868-
LogPrintf("GetProofOfWorkReward() : create=%s nSubsidy=%" PRId64, FormatMoney(nSubsidy), nSubsidy);
1869-
if (nSubsidy < (30*COIN)) nSubsidy=30*COIN;
1870-
//Gridcoin Foundation Block:
1871-
if (height==10)
1872-
{
1873-
nSubsidy = nGenesisSupply * COIN;
1874-
}
1875-
if (fTestNet) nSubsidy += 1000*COIN;
1876-
1877-
return nSubsidy + nFees;
1878-
}
1879-
1880-
18811860
int64_t GetProofOfWorkMaxReward(int64_t nFees, int64_t locktime, int64_t height)
18821861
{
18831862
int64_t nSubsidy = (GetMaximumBoincSubsidy(locktime)+1) * COIN;

src/main.h

-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ bool CheckProofOfResearch(
263263
const CBlock &block); //block to check
264264

265265
unsigned int GetNextTargetRequired(const CBlockIndex* pindexLast, bool fProofOfStake);
266-
int64_t GetProofOfWorkReward(int64_t nFees, int64_t locktime, int64_t height);
267266
int64_t GetConstantBlockReward(const CBlockIndex* index);
268267
int64_t ComputeResearchAccrual(int64_t nTime, std::string cpid, std::string operation, CBlockIndex* pindexLast, bool bVerifyingBlock, int VerificationPhase, double& dAccrualAge, double& dMagnitudeUnit, double& AvgMagnitude);
269268
int64_t GetProofOfStakeReward(uint64_t nCoinAge, int64_t nFees, std::string cpid,

0 commit comments

Comments
 (0)