Skip to content

refactor(pxe): batch nullifier sync across scopes#23129

Open
nchamo wants to merge 1 commit intomerge-train/fairiesfrom
nchamo/scopes-rpc-optimization
Open

refactor(pxe): batch nullifier sync across scopes#23129
nchamo wants to merge 1 commit intomerge-train/fairiesfrom
nchamo/scopes-rpc-optimization

Conversation

@nchamo
Copy link
Copy Markdown
Contributor

@nchamo nchamo commented May 9, 2026

Summary

  • Splits contract sync into three tiers: contract-wide (cached, scope-independent), multi-scope (batched per sync), and per-scope (cached, semaphore-bounded).
  • Moves syncNoteNullifiers out of the per-scope path so it runs once per sync with all unsynced scopes batched together, instead of once per scope. This collapses N node RPC calls into 1 when syncing a contract for multiple scopes.
  • Renames syncStatesyncScope and verifiedClassIdscontractWideSyncCache to reflect the new structure.

@nchamo nchamo self-assigned this May 9, 2026
@nchamo nchamo changed the title perf(pxe): batch nullifier sync across scopes refactor(pxe): batch nullifier sync across scopes May 9, 2026
@nchamo nchamo requested a review from mverzilli May 9, 2026 22:49
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.

1 participant