diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-08-25 15:29:32 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-08-25 15:28:04 +0200 |
commit | fa8b02d36d5c75266d3c8ffb91ece761ce90e774 (patch) | |
tree | 7d8a8051b539c3f75b748bee2c8de2add33859d4 /src/rpc/rawtransaction.cpp | |
parent | fa28bfa341b0f1ca53ae2fc8d3d08afbf8d69a61 (diff) |
[rpc] rawtx: Prepare fLimitFree to make it an option
Diffstat (limited to 'src/rpc/rawtransaction.cpp')
-rw-r--r-- | src/rpc/rawtransaction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 3270cd384f..b1eaa248d4 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -866,6 +866,7 @@ UniValue sendrawtransaction(const UniValue& params, bool fHelp) throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed"); uint256 hashTx = tx.GetHash(); + bool fLimitFree = false; CAmount nMaxRawTxFee = maxTxFee; if (params.size() > 1 && params[1].get_bool()) nMaxRawTxFee = 0; @@ -878,7 +879,7 @@ UniValue sendrawtransaction(const UniValue& params, bool fHelp) // push to local node and sync with wallets CValidationState state; bool fMissingInputs; - if (!AcceptToMemoryPool(mempool, state, tx, false, &fMissingInputs, false, nMaxRawTxFee)) { + if (!AcceptToMemoryPool(mempool, state, tx, fLimitFree, &fMissingInputs, false, nMaxRawTxFee)) { if (state.IsInvalid()) { throw JSONRPCError(RPC_TRANSACTION_REJECTED, strprintf("%i: %s", state.GetRejectCode(), state.GetRejectReason())); } else { |