wallet: Remove unreachable code in CreateTransaction

This commit is contained in:
MarcoFalke 2019-07-02 11:50:13 -04:00
parent 5c1b9714cb
commit 177550101b

View file

@ -3006,14 +3006,6 @@ bool CWallet::CreateTransaction(interfaces::Chain::Lock& locked_chain, const std
return false; 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) { if (nFeeRet >= nFeeNeeded) {
// Reduce fee to only the needed amount if possible. This // Reduce fee to only the needed amount if possible. This
// prevents potential overpayment in fees if the coins // prevents potential overpayment in fees if the coins