From 76bf2b1db0bc8550e8761da33bedfdadccfc8557 Mon Sep 17 00:00:00 2001 From: Sunny King Date: Fri, 10 Aug 2012 02:03:44 +0100 Subject: [PATCH] PPCoin: Safety limit of proof-of-work subsidy --- src/main.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 70c761d..1908f85 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -851,7 +851,7 @@ int64 static GetProofOfWorkReward(unsigned int nBits) if (fDebug && GetBoolArg("-printcreation")) printf("GetProofOfWorkReward() : create=%s nBits=0x%08x nSubsidy=%"PRI64d"\n", FormatMoney(nSubsidy).c_str(), nBits, nSubsidy); - return nSubsidy; + return min(nSubsidy, MAX_MINT_PROOF_OF_WORK); } // ppcoin: miner's coin stake is rewarded based on coin age spent (coin-days) -- 1.7.1