@@ -2679,6 +2679,7 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CWalletT
2679
2679
assert (txNew.nLockTime <= (unsigned int )chainActive.Height ());
2680
2680
assert (txNew.nLockTime < LOCKTIME_THRESHOLD);
2681
2681
FeeCalculation feeCalc;
2682
+ CAmount nFeeNeeded;
2682
2683
unsigned int nBytes;
2683
2684
{
2684
2685
std::set<CInputCoin> setCoins;
@@ -2840,7 +2841,7 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CWalletT
2840
2841
vin.scriptWitness .SetNull ();
2841
2842
}
2842
2843
2843
- CAmount nFeeNeeded = GetMinimumFee (nBytes, coin_control, ::mempool, ::feeEstimator, &feeCalc);
2844
+ nFeeNeeded = GetMinimumFee (nBytes, coin_control, ::mempool, ::feeEstimator, &feeCalc);
2844
2845
2845
2846
// If we made it here and we aren't even able to meet the relay fee on the next pass, give up
2846
2847
// because we must be at the maximum allowed fee.
@@ -2964,8 +2965,8 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CWalletT
2964
2965
}
2965
2966
}
2966
2967
2967
- LogPrintf (" Fee Calculation: Fee:%d Bytes:%u Tgt:%d (requested %d) Reason:\" %s\" Decay %.5f: Estimation: (%g - %g) %.2f%% %.1f/(%.1f %d mem %.1f out) Fail: (%g - %g) %.2f%% %.1f/(%.1f %d mem %.1f out)\n " ,
2968
- nFeeRet, nBytes, feeCalc.returnedTarget , feeCalc.desiredTarget , StringForFeeReason (feeCalc.reason ), feeCalc.est .decay ,
2968
+ LogPrintf (" Fee Calculation: Fee:%d Bytes:%u Needed:%d Tgt:%d (requested %d) Reason:\" %s\" Decay %.5f: Estimation: (%g - %g) %.2f%% %.1f/(%.1f %d mem %.1f out) Fail: (%g - %g) %.2f%% %.1f/(%.1f %d mem %.1f out)\n " ,
2969
+ nFeeRet, nBytes, nFeeNeeded, feeCalc.returnedTarget , feeCalc.desiredTarget , StringForFeeReason (feeCalc.reason ), feeCalc.est .decay ,
2969
2970
feeCalc.est .pass .start , feeCalc.est .pass .end ,
2970
2971
100 * feeCalc.est .pass .withinTarget / (feeCalc.est .pass .totalConfirmed + feeCalc.est .pass .inMempool + feeCalc.est .pass .leftMempool ),
2971
2972
feeCalc.est .pass .withinTarget , feeCalc.est .pass .totalConfirmed , feeCalc.est .pass .inMempool , feeCalc.est .pass .leftMempool ,
0 commit comments