X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.cpp;fp=src%2Fwallet.cpp;h=652d9fa0408157221bc387e7d9ce5f49113753c4;hb=9b1c1c96d205849f993eaa23a6c0a3ab947e110d;hp=8bbb80cf254a71b34afcc8c6ca72eaffa9226de8;hpb=c7eb151ad0ed441d6fd598551059a9bbfb09e99e;p=novacoin.git diff --git a/src/wallet.cpp b/src/wallet.cpp index 8bbb80c..652d9fa 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1,5 +1,6 @@ -// Copyright (c) 2009-2010 Satoshi Nakamoto +// Copyright (c) 2009-2011 Satoshi Nakamoto // Copyright (c) 2011 The Bitcoin developers +// Copyright (c) 2011 The PPCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. @@ -982,9 +983,8 @@ bool CWallet::CreateTransaction(const vector >& vecSend, CW dPriority /= nBytes; // Check that enough fee is included - int64 nPayFee = nTransactionFee * (1 + (int64)nBytes / 1000); - bool fAllowFree = CTransaction::AllowFree(dPriority); - int64 nMinFee = wtxNew.GetMinFee(1, fAllowFree); + int64 nPayFee = nTransactionFee; // ppcoin: simplify tx fee + int64 nMinFee = wtxNew.GetMinFee(1, false); if (nFeeRet < max(nPayFee, nMinFee)) { nFeeRet = max(nPayFee, nMinFee);