[wallet] Disable free transactions when relay is disabled

This commit is contained in:
MarcoFalke committed 2016-12-10 17:45:23 +01:00
1 parent 72bf1b3d09
commit faf4ca84e4
1 file changed
+3
+3
View File
@@ -3642,6 +3642,9 @@ bool CWallet::ParameterInteraction()
fSendFreeTransactions = GetBoolArg("-sendfreetransactions", DEFAULT_SEND_FREE_TRANSACTIONS);
fWalletRbf = GetBoolArg("-walletrbf", DEFAULT_WALLET_RBF);
if (fSendFreeTransactions && GetArg("-limitfreerelay", DEFAULT_LIMITFREERELAY) <= 0)
return InitError("Creation of free transactions with their relay disabled is not supported.");
return true;
}