Skip to content

fix(tx): reject txs with invalid setup when unprotecting#21224

Open
spalladino wants to merge 1 commit intomerge-train/spartanfrom
palla/reject-invalid-setup-in-unprotect
Open

fix(tx): reject txs with invalid setup when unprotecting#21224
spalladino wants to merge 1 commit intomerge-train/spartanfrom
palla/reject-invalid-setup-in-unprotect

Conversation

@spalladino
Copy link
Contributor

When unprotecting txs, we were not running the check for allowed public setup functions, which was skipped in the reqresp entrypoint.

This commit now tracks whether public setup is allowed or not for a tx in the tx metadata, and uses it to drop the tx when it becomes unprotected.

An alternative approach would have been to store the entire public setup calls in the tx metadata, but this means a smaller memory footprint.

When unprotecting txs, we were not running the check for allowed public
setup functions, which was skipped in the reqresp entrypoint.

This commit now tracks whether public setup is allowed or not for a tx
in the tx metadata, and uses it to drop the tx when it becomes
unprotected.

An alternative approach would have been to store the entire public setup
calls in the tx metadata, but this means a smaller memory footprint.
@spalladino spalladino changed the base branch from next to merge-train/spartan March 6, 2026 20:03
@spalladino spalladino added ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure backport-to-v4 labels Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v4 ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant