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

This commit is contained in:
Valentin Balaschenko
2026-05-13 14:22:00 +01:00
committed by GitHub
parent e8bdbaa1e8
commit 411286c519

View File

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