git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
03aa39a
)
PPCoin: Safety limit of proof-of-work subsidy
author
Sunny King
<sunnyking9999@gmail.com>
Fri, 10 Aug 2012 01:03:44 +0000 (
02:03
+0100)
committer
Sunny King
<sunnyking9999@gmail.com>
Fri, 10 Aug 2012 01:03:44 +0000 (
02:03
+0100)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
70c761d
..
1908f85
100644
(file)
--- 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)