Skip to content

Commit 3097ea4

Browse files
committed
Merge #9316: [wallet] Disable free transactions when relay is disabled
faf4ca8 [wallet] Disable free transactions when relay is disabled (MarcoFalke)
2 parents 7f72568 + faf4ca8 commit 3097ea4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3647,6 +3647,9 @@ bool CWallet::ParameterInteraction()
36473647
fSendFreeTransactions = GetBoolArg("-sendfreetransactions", DEFAULT_SEND_FREE_TRANSACTIONS);
36483648
fWalletRbf = GetBoolArg("-walletrbf", DEFAULT_WALLET_RBF);
36493649

3650+
if (fSendFreeTransactions && GetArg("-limitfreerelay", DEFAULT_LIMITFREERELAY) <= 0)
3651+
return InitError("Creation of free transactions with their relay disabled is not supported.");
3652+
36503653
return true;
36513654
}
36523655

0 commit comments

Comments
 (0)