git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
PPCoin: Fix CreateCoinStake() bug from 747f99fb
[novacoin.git]
/
src
/
wallet.cpp
diff --git
a/src/wallet.cpp
b/src/wallet.cpp
index
58e1baf
..
1b30be8
100644
(file)
--- a/
src/wallet.cpp
+++ b/
src/wallet.cpp
@@
-1114,7
+1114,7
@@
bool CWallet::CreateCoinStake(CScript scriptPubKey, unsigned int nBits, CTransac
break;
}
}
- if (nCredit > nBalance - nBalanceReserve)
+ if (nCredit == 0 || nCredit > nBalance - nBalanceReserve)
return false;
// Calculate coin age reward
{