From d1d7a9405373e6fd877d269739fe9cfa3b214d88 Mon Sep 17 00:00:00 2001 From: Greg Sanders Date: Tue, 5 Dec 2023 11:27:28 -0500 Subject: [PATCH] Allow bypassing CheckValidEphemeralTx during reorg --- src/validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation.cpp b/src/validation.cpp index de1afdc2c31beb..789e5c005acad3 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -895,7 +895,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws) // We check for ephemeral tx properties now that we have access to ws.m_base_fees, // have set ws.m_modified_fees and ws.m_vsize, and will potentially return a TX_RECONSIDERABLE // which require the various fee and size for reporting. - if (!CheckValidEphemeralTx(tx, state, ws.m_base_fees, args.m_package_submission)) { + if (!bypass_limits && !CheckValidEphemeralTx(tx, state, ws.m_base_fees, args.m_package_submission)) { return false; // state filled in by CheckValidEphemeralTx }