InstantSend txes should never qualify to be a 0-fee txes (#1777)

This commit is contained in:
UdjinM6 2017-12-13 15:43:05 +03:00 committed by GitHub
parent 930afd7df4
commit f37a64208c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3458,7 +3458,8 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
dPriority = wtxNew.ComputePriority(dPriority, nBytes); dPriority = wtxNew.ComputePriority(dPriority, nBytes);
// Can we complete this as a free transaction? // 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? // Not enough fee: enough priority?
double dPriorityNeeded = mempool.estimateSmartPriority(nTxConfirmTarget); double dPriorityNeeded = mempool.estimateSmartPriority(nTxConfirmTarget);