git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2fc1013
)
Replace MIN_TX_FEE with CENT in change calculation
author
CryptoManiac
<balthazar@yandex.ru>
Sat, 14 Jun 2014 20:38:22 +0000 (
00:38
+0400)
committer
CryptoManiac
<balthazar@yandex.ru>
Sat, 14 Jun 2014 20:38:22 +0000 (
00:38
+0400)
src/wallet.cpp
patch
|
blob
|
history
diff --git
a/src/wallet.cpp
b/src/wallet.cpp
index
331069b
..
0271cac
100644
(file)
--- a/
src/wallet.cpp
+++ b/
src/wallet.cpp
@@
-1466,9
+1466,9
@@
bool CWallet::CreateTransaction(const vector<pair<CScript, int64> >& vecSend, CW
// NOTE: this depends on the exact behaviour of GetMinFee
if (wtxNew.nTime < FEE_SWITCH_TIME && !fTestNet)
{
- if (nFeeRet < MIN_TX_FEE && nChange > 0 && nChange < CENT)
+ if (nFeeRet < CENT && nChange > 0 && nChange < CENT)
{
- int64 nMoveToFee = min(nChange, MIN_TX_FEE - nFeeRet);
+ int64 nMoveToFee = min(nChange, CENT - nFeeRet);
nChange -= nMoveToFee;
nFeeRet += nMoveToFee;
}