git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
72fef68
)
Force allowfree = false until 1 july 2014
author
CryptoManiac
<balthazar@yandex.ru>
Sun, 1 Jun 2014 12:39:21 +0000 (16:39 +0400)
committer
CryptoManiac
<balthazar@yandex.ru>
Sun, 1 Jun 2014 12:39:21 +0000 (16:39 +0400)
src/wallet.cpp
patch
|
blob
|
history
diff --git
a/src/wallet.cpp
b/src/wallet.cpp
index
e201bdf
..
2502f8f
100644
(file)
--- a/
src/wallet.cpp
+++ b/
src/wallet.cpp
@@
-1534,6
+1534,12
@@
bool CWallet::CreateTransaction(const vector<pair<CScript, int64> >& vecSend, CW
// Check that enough fee is included
int64 nPayFee = nTransactionFee * (1 + (int64)nBytes / 1000);
bool fAllowFree = CTransaction::AllowFree(dPriority);
+
+ if (!fTestNet && wtxNew.nTime < FEE_SWITCH_TIME)
+ {
+ fAllowFree = false;
+ }
+
int64 nMinFee = wtxNew.GetMinFee(1, fAllowFree, GMF_SEND, nBytes);
if (nFeeRet < max(nPayFee, nMinFee))
{