|
|
|
@ -3006,14 +3006,6 @@ bool CWallet::CreateTransaction(interfaces::Chain::Lock& locked_chain, const std
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// If we made it here and we aren't even able to meet the relay fee on the next pass, give up
|
|
|
|
|
// because we must be at the maximum allowed fee.
|
|
|
|
|
if (nFeeNeeded < chain().relayMinFee().GetFee(nBytes))
|
|
|
|
|
{
|
|
|
|
|
strFailReason = _("Transaction too large for fee policy");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (nFeeRet >= nFeeNeeded) {
|
|
|
|
|
// Reduce fee to only the needed amount if possible. This
|
|
|
|
|
// prevents potential overpayment in fees if the coins
|
|
|
|
|