Skip to content

Commit faf4ca8

Browse files
author
MarcoFalke
committed
[wallet] Disable free transactions when relay is disabled
1 parent 72bf1b3 commit faf4ca8

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
@@ -3642,6 +3642,9 @@ bool CWallet::ParameterInteraction()
36423642
fSendFreeTransactions = GetBoolArg("-sendfreetransactions", DEFAULT_SEND_FREE_TRANSACTIONS);
36433643
fWalletRbf = GetBoolArg("-walletrbf", DEFAULT_WALLET_RBF);
36443644

3645+
if (fSendFreeTransactions && GetArg("-limitfreerelay", DEFAULT_LIMITFREERELAY) <= 0)
3646+
return InitError("Creation of free transactions with their relay disabled is not supported.");
3647+
36453648
return true;
36463649
}
36473650

0 commit comments

Comments
 (0)