Skip to content

Commit 1775501

Browse files
author
MarcoFalke
committed
wallet: Remove unreachable code in CreateTransaction
1 parent 5c1b971 commit 1775501

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/wallet/wallet.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,14 +3006,6 @@ bool CWallet::CreateTransaction(interfaces::Chain::Lock& locked_chain, const std
30063006
return false;
30073007
}
30083008

3009-
// If we made it here and we aren't even able to meet the relay fee on the next pass, give up
3010-
// because we must be at the maximum allowed fee.
3011-
if (nFeeNeeded < chain().relayMinFee().GetFee(nBytes))
3012-
{
3013-
strFailReason = _("Transaction too large for fee policy");
3014-
return false;
3015-
}
3016-
30173009
if (nFeeRet >= nFeeNeeded) {
30183010
// Reduce fee to only the needed amount if possible. This
30193011
// prevents potential overpayment in fees if the coins

0 commit comments

Comments
 (0)