Skip to content

Commit 9ca59ae

Browse files
MarcoFalkerandom-zebra
authored andcommitted
[rpc] rawtx: Prepare fLimitFree to make it an option
1 parent f682e75 commit 9ca59ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,7 @@ void TryATMP(const CMutableTransaction& mtx, bool fOverrideFees)
795795
{
796796
const uint256& hashTx = mtx.GetHash();
797797
std::promise<void> promise;
798+
bool fLimitFree = true;
798799

799800
{ // cs_main scope
800801
LOCK(cs_main);
@@ -808,7 +809,7 @@ void TryATMP(const CMutableTransaction& mtx, bool fOverrideFees)
808809
if (!fHaveMempool && !fHaveChain) {
809810
CValidationState state;
810811
bool fMissingInputs;
811-
if (!AcceptToMemoryPool(mempool, state, MakeTransactionRef(std::move(mtx)), true, &fMissingInputs, false, !fOverrideFees)) {
812+
if (!AcceptToMemoryPool(mempool, state, MakeTransactionRef(std::move(mtx)), fLimitFree, &fMissingInputs, false, !fOverrideFees)) {
812813
if (state.IsInvalid()) {
813814
throw JSONRPCError(RPC_TRANSACTION_REJECTED, strprintf("%s: %s", state.GetRejectReason(), state.GetDebugMessage()));
814815
} else {

0 commit comments

Comments
 (0)