refactor: Prevent dry-run transactions from being queued (#92)

This commit is contained in:
Valentin Balaschenko
2026-04-28 17:16:37 +01:00
committed by Bart
parent dc707b9f35
commit 3004e04936

View File

@@ -749,6 +749,9 @@ TxQ::apply(
if (auto directApplied = tryDirectApply(app, view, tx, flags, j))
return *directApplied;
if ((flags & tapDRY_RUN) != 0u)
return {telCAN_NOT_QUEUE, false};
// If we get past tryDirectApply() without returning then we expect
// one of the following to occur:
//