Merged
Conversation
Thunkar
approved these changes
May 29, 2025
github-merge-queue bot
pushed a commit
that referenced
this pull request
May 29, 2025
Discovered through #14595 High probability of it being the source of boxes flakyness
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jun 2, 2025
Combined with #14595, this will mean regular private notes will be processed in two roundtrips: one for events, and one for note/nullifier indexes (for all events and notes concurrently, not accounting for the advancing of the tagging indexes).
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jun 2, 2025
Combined with #14595, this will mean regular private notes will be processed in two roundtrips: one for events, and one for note/nullifier indexes (for all events and notes concurrently, not accounting for the advancing of the tagging indexes).
This was referenced Jun 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This massively improves performance of the note discovery process by enabling batching of note validation requests (i.e. checking that notes indeed exist in the note hash tree). We achieve this by migrating from sequential steps to a staged approach.
This continues the trend set by #13107 where we began to split the message discovery process into multiple steps (now modeled by
aztec::message::processingfrom #14567), each of which starts and ends with a capsule array. This lets us consume and produce arbitrary amounts of values in unconstrained Noir functions, without having to deal with the limitations of fixed sized arrays. As of this PR, the process looks as follows:fetchTaggedLogsoracleThis pattern sidesteps having to deal with fixed-size oracles (which would require e.g. pagination, an even more stateful PXE) by leveraging the capsule array as the main building tool. It should be simple to later extend this to e.g. produce a capsule array of tags to be searched for, which would result in a second capsule array being populated with the results, so that partial note completion log queries need not be completed serially.
The obvious downside of this approach is that it introduces relatively strange oracle semantics, and results in comunication from the contract and pxe to occur not just through the oracle interfaces, but also the values in the capsule arrays (including their serialization).