wallet: Remove unreachable code in CreateTransaction
This commit is contained in:
parent
5c1b9714cb
commit
177550101b
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue