mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
InstantSend txes should never qualify to be a 0-fee txes (#1777)
This commit is contained in:
parent
930afd7df4
commit
f37a64208c
@ -3458,7 +3458,8 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& 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);
|
||||
|
Loading…
Reference in New Issue
Block a user