diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-12-20 11:28:55 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-12-20 11:29:59 +0100 |
| commit | 3097ea40d7195267bc1e525eb1707d4b8d7304a2 (patch) | |
| tree | fd39d85a4aafc9020ac65f4cdf3290399f8c1834 /src/wallet/wallet.cpp | |
| parent | Merge #9236: Fix races for strMiscWarning and fLargeWork*Found, make QT runaw... (diff) | |
| parent | [wallet] Disable free transactions when relay is disabled (diff) | |
| download | discoin-3097ea40d7195267bc1e525eb1707d4b8d7304a2.tar.xz discoin-3097ea40d7195267bc1e525eb1707d4b8d7304a2.zip | |
Merge #9316: [wallet] Disable free transactions when relay is disabled
faf4ca8 [wallet] Disable free transactions when relay is disabled (MarcoFalke)
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 450da0067..aef3922b9 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3647,6 +3647,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; } |