Skip to content

refactor(pxe): migrate PrivateEventStore to BaseStagingStore - #110

Open
nchamo wants to merge 2 commits into
nchamo/sender-tagging-base-stagingfrom
nchamo/private-event-store-base-staging
Open

refactor(pxe): migrate PrivateEventStore to BaseStagingStore#110
nchamo wants to merge 2 commits into
nchamo/sender-tagging-base-stagingfrom
nchamo/private-event-store-base-staging

Conversation

@nchamo

@nchamo nchamo commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Moves PrivateEventStore onto BaseStagingStore (fix(pxe): per-change-set staging store that rejects dead change sets #47): the per-change-set maps, locks, commitChangeSet/discardChangeSet and the rollback guard now come from the base class, leaving flushChangeSet and applyRollback.
  • Not a pure refactor. getPrivateEvents takes a changeSetId and layers staged events over the committed index, and PXE.getPrivateEvents reads inside its runSynced block rather than after the commit. Same events either way: the sync that produces them stages them under that change set.
  • Removes eventIdsAtBlock, which had no production callers, as fix(pxe): per-change-set staging store that rejects dead change sets #47 did for NoteStore.nullifiersOfNotesAtBlock.
  • Last store in StagedWriteCoordinator's registry, so StagedStore.beginChangeSet is now required, resolving its TODO.
  • kv schema unchanged; backwards-compatibility snapshots untouched.

Stacked on #108.

@nchamo nchamo self-assigned this Aug 28, 2026
@nchamo nchamo added ci-draft Run CI on this draft PR ci-no-fail-fast Do not cancel remaining jobs on first failure labels Aug 28, 2026
@nchamo
nchamo marked this pull request as ready for review August 28, 2026 19:58
@nchamo
nchamo requested a review from nventuro August 28, 2026 19:58
@nchamo
nchamo force-pushed the nchamo/private-event-store-base-staging branch from 14ce305 to 3e2d9de Compare August 28, 2026 20:04
@nventuro
nventuro force-pushed the nchamo/private-event-store-base-staging branch from 3e2d9de to 21d7d81 Compare August 28, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on this draft PR ci-no-fail-fast Do not cancel remaining jobs on first failure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant