From ed3e5e468c5b7973d71efe51c90c3a301d570e27 Mon Sep 17 00:00:00 2001 From: Cozz Lovan Date: Sun, 2 Nov 2014 00:47:39 +0100 Subject: [Wallet] Add global boolean whether to pay at least the custom fee (default=true) --- src/wallet.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/wallet.cpp') diff --git a/src/wallet.cpp b/src/wallet.cpp index 1b8e387e44..f1cf104974 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -29,6 +29,7 @@ CFeeRate payTxFee(DEFAULT_TRANSACTION_FEE); unsigned int nTxConfirmTarget = 1; bool bSpendZeroConfChange = true; bool fSendFreeTransactions = true; +bool fPayAtLeastCustomFee = true; /** * Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) @@ -1383,7 +1384,10 @@ bool CWallet::CreateTransaction(const vector >& vecSend, { LOCK2(cs_main, cs_wallet); { - nFeeRet = payTxFee.GetFeePerK(); + if (fPayAtLeastCustomFee) + nFeeRet = payTxFee.GetFeePerK(); + else + nFeeRet = 0; while (true) { txNew.vin.clear(); -- cgit v1.2.3