Skip to content

fix(pxe): per-change-set staging store that rejects dead change sets (backport of aztec-labs-eng/aztec-node#47) - #25338

Open
nventuro wants to merge 1 commit into
nico/port-node-40-rollbackablefrom
nico/port-node-47-base-staging-store
Open

fix(pxe): per-change-set staging store that rejects dead change sets (backport of aztec-labs-eng/aztec-node#47)#25338
nventuro wants to merge 1 commit into
nico/port-node-40-rollbackablefrom
nico/port-node-47-base-staging-store

Conversation

@nventuro

@nventuro nventuro commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Backport of aztec-labs-eng/aztec-node#47 to the v5 line: a git cherry-pick -x of its squash commit on aztec-node/main, e9d1410eba861752ef4a9ebf7e54768917e589e1. The change itself was described and reviewed there; this PR is only about the port being faithful, so please review it as such.

Validating the backport

  1. Fetch the source repo once: git remote add node https://github.com/aztec-labs-eng/aztec-node && git fetch node main.

  2. Compare the upstream patch with this PR's patch (range-diff compares patches, so unrelated histories are fine):

    git range-diff e9d1410eba^..e9d1410eba origin/nico/port-node-47-base-staging-store^..origin/nico/port-node-47-base-staging-store
    

    Expected: only the (cherry picked from commit …) trailer under the commit message and nothing else — no -/+ lines under any file header. The patch applied without conflicts and was not edited.

  3. Build and run the unit suites at this commit (from yarn-project/): yarn workspace @aztec/pxe build && yarn workspace @aztec/txe build && yarn workspace @aztec/pxe test && yarn workspace @aztec/txe test. The upstream PR's own tests are part of these suites, so passing them is the behavioral check; CI on this PR runs them as well.

Stack

Stacked on the backport of aztec-labs-eng/aztec-node#40 (base branch nico/port-node-40-rollbackable); to be rebased onto merge-train/fairies-v5 once that one merges. Order: #20#35#40#47#94#100#98 (aztec-node numbers).

…47)

* fix(pxe): per-change-set staging store that rejects dead change sets

* test(pxe): inline the change-set switch in note store tests

* docs(pxe): clarify BaseStagingStore thread safety and type params

* fix(pxe): reject commits while change set ops are in flight

* refactor(pxe): rename staged-store methods to change set terms

(cherry picked from commit e9d1410eba861752ef4a9ebf7e54768917e589e1)
@nventuro
nventuro force-pushed the nico/port-node-47-base-staging-store branch from 2eb02f4 to 9c6b7ab Compare August 28, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants