diff --git a/src/qt/coincontroldialog.cpp b/src/qt/coincontroldialog.cpp --- a/src/qt/coincontroldialog.cpp +++ b/src/qt/coincontroldialog.cpp @@ -469,11 +469,8 @@ Amount nChange(0); unsigned int nBytes = 0; unsigned int nBytesInputs = 0; - double dPriority = 0; - double dPriorityInputs = 0; unsigned int nQuantity = 0; int nQuantityUncompressed = 0; - bool fAllowFree = false; std::vector vCoinControl; std::vector vOutputs; @@ -496,11 +493,6 @@ // Amount nAmount += out.tx->tx->vout[out.i].nValue; - // Priority - dPriorityInputs += - (double)out.tx->tx->vout[out.i].nValue.GetSatoshis() * - (out.nDepth + 1); - // Bytes CTxDestination address; if (ExtractDestination(out.tx->tx->vout[out.i].scriptPubKey, address)) { @@ -542,18 +534,6 @@ nPayFee = coinControl->nMinimumTotalFee; } - // Allow free? (require at least hard-coded threshold and default to - // that if no estimate) - double mempoolEstimatePriority = - mempool.estimateSmartPriority(nTxConfirmTarget); - // 29 = 180 - 151 (uncompressed public keys are over the limit. max 151 - // bytes of the input are ignored for priority) - dPriority = dPriorityInputs / - (nBytes - nBytesInputs + (nQuantityUncompressed * 29)); - double dPriorityNeeded = - std::max(mempoolEstimatePriority, AllowFreeThreshold()); - fAllowFree = (dPriority >= dPriorityNeeded); - if (nPayAmount > Amount(0)) { nChange = nAmount - nPayAmount; if (!CoinControlDialog::fSubtractFeeFromAmount) nChange -= nPayFee;