Skip to content

Commit

Permalink
Allow bypassing CheckValidEphemeralTx during reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Dec 5, 2023
1 parent 4890cf7 commit 50347d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 50347d3

Please sign in to comment.