From f37a64208c6c0d2ce29b33c060ccf62731cb4786 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Wed, 13 Dec 2017 15:43:05 +0300 Subject: [PATCH] InstantSend txes should never qualify to be a 0-fee txes (#1777) --- src/wallet/wallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index f958bbf04..eadd825b5 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3458,7 +3458,8 @@ bool CWallet::CreateTransaction(const vector& vecSend, CWalletTx& wt dPriority = wtxNew.ComputePriority(dPriority, nBytes); // Can we complete this as a free transaction? - if (fSendFreeTransactions && nBytes <= MAX_FREE_TRANSACTION_CREATE_SIZE) + // Note: InstantSend transaction can't be a free one + if (!fUseInstantSend && fSendFreeTransactions && nBytes <= MAX_FREE_TRANSACTION_CREATE_SIZE) { // Not enough fee: enough priority? double dPriorityNeeded = mempool.estimateSmartPriority(nTxConfirmTarget);