-
Notifications
You must be signed in to change notification settings - Fork 129
feat(rust-client): screen NTL notes #2474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+120
−1
Merged
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
7559170
refactor(rust-client): split both syncs into fetch and apply phases
ricomateo db355b2
refactor(rust-client): keep flush_relay_outbox as a single function
ricomateo b12aff4
refactor(rust-client): group the expected-note import fns in one impl…
ricomateo 1fca608
refactor(rust-client): make ChainSyncData plain data and move its met…
ricomateo ce332b8
refactor(rust-client): store note blocks as they are fetched
ricomateo 0ff8e1a
refactor(rust-client): rename the expected-note update types and fields
ricomateo 8e886b0
refactor(rust-client): carry a single merged ExpectedNoteUpdates per …
ricomateo 393f6b2
refactor(rust-client): cache and prune inside apply_chain_updates
ricomateo 7888dcf
refactor(rust-client): fetch note blocks in the fetch phase, store th…
ricomateo 47c4bd5
docs(rust-client): correct and trim the sync phase doc comments
ricomateo 692f01b
fix(rust-client): screen the chain sync's notes after the transport w…
ricomateo 1c6d625
fix(rust-client): check delivered notes for spends below the sync height
ricomateo ddd92d9
chore: update changelog
ricomateo a072502
refactor(rust-client): name the sync data types and bindings after wh…
ricomateo f6642f3
refactor(rust-client): name the transport fetch fns after what they r…
ricomateo f1d251c
refactor(rust-client): pair the transport fetch and apply fns by the …
ricomateo 2669f29
chore: simplify doc comments
ricomateo c79d60a
chore: improve doc comments
ricomateo 4cb2afa
refactor(rust-client): key the awaiting-block notes on their record s…
ricomateo f442817
docs(rust-client): correct the note import docs for the single note list
ricomateo 603e7c7
refactor(rust-client): import notes by details through the transport …
ricomateo daf6dc8
refactor(rust-client): match the transport note fetch interface to th…
ricomateo 6e4fcb5
refactor(rust-client): return the by-details import records for impor…
ricomateo e843309
refactor(rust-client): simplify the sync_state phase boundaries
ricomateo bffcc4d
refactor(rust-client): rename screen_fetched_notes to derive_note_and…
ricomateo b442c60
docs(rust-client): explain the NTL note merge and nullifier coverage …
ricomateo 7c11dc3
docs(rust-client): simplify the nullifier fetch comment in sync_state
ricomateo 9f9b365
refactor(rust-client): take note blocks from the sync response instea…
ricomateo 13975b5
chore: improve doc comments
ricomateo 5a0d45c
fix(rust-client): return imported notes only when the fetched informa…
ricomateo 5504940
chore: update changelog
ricomateo 4f6bd78
Merge branch 'next' into ricomateo-concurrent-ntl-chain-sync
ricomateo dcbe5bb
feat(rust-client): screen NTL-fetched notes against tracked accounts
ricomateo eabf980
chore: update changelog
ricomateo 9e33f77
fix(rust-client): screen only notes associated to account-derived tags
ricomateo 526f2ca
refactor(rust-client): screen only NTL notes matching a tracked accou…
ricomateo 66c3825
Merge branch 'next' into ricomateo-concurrent-ntl-chain-sync
ricomateo 8650e9b
fix: clippy warnings
ricomateo 20bf02c
chore: improve tests legibility
ricomateo 90ce893
chore: move apply_superseded_account_state call to derive_state_updates
ricomateo c987407
chore: add type alias for the import_note_records_by_details parameter
ricomateo 0e8ba3c
Merge branch 'next' into ricomateo-concurrent-ntl-chain-sync
ricomateo d24f669
chore: replace assertion with an error
ricomateo 22efe56
chore: capitalize id in doc comment
ricomateo 8e562c9
test: check the note is committed before checking the sync_state result
ricomateo 2fdf309
test: collapse the tests into a single one
ricomateo 552f9a2
Merge branch 'next' into ricomateo-concurrent-ntl-chain-sync
ricomateo c5980b5
refactor(rust-client): make only the note transport fetch concurrent …
ricomateo d309701
fix(rust-client): keep the consumer account of a note spent above the…
ricomateo 3e5ce6f
fix: replace try_join with join
ricomateo 4a1b54b
chore: rename NoteImportRequest type alias to NoteImportByDetailsRequest
ricomateo cb04134
chore: rename functions and structs
ricomateo 6edabf9
chore: update changelog
ricomateo ff45838
Merge branch 'next' into ricomateo-concurrent-ntl-chain-sync
ricomateo d2f2b91
refactor(rust-client): drop import_note_records and read the imported…
ricomateo f41fff8
chore: simplify sync_expected_notes and import_note_records_by_details
ricomateo 33e242d
Merge branch 'ricomateo-concurrent-ntl-chain-sync' into ricomateo-scr…
ricomateo 820c969
Merge branch 'next' into ricomateo-screen-ntl-notes
igamigo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not using the block number at all, we can just change the parameter to
Vec<Note>There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The thing is that the caller function
fetch_note_transport_updatesrequires to have the note binded to the block number, since it uses it as a hint when fetching the notes from the node, so I think is simpler to keep it that way.