-
Notifications
You must be signed in to change notification settings - Fork 28
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
chore: improve SyncSummary
information
#513
Conversation
9b019e5
to
1bcce5a
Compare
let notes = maybe_await!(self.get_input_notes(NoteFilter::Committed))? | ||
.into_iter() | ||
.chain(maybe_await!(self.get_input_notes(NoteFilter::Processing))?) | ||
.filter(|note| { | ||
nullifiers.contains( | ||
&Nullifier::from_hex(note.nullifier()) | ||
.expect("Note should have valid nullifier"), | ||
) | ||
}) | ||
.collect(); |
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.
This may be done in a single query, what do you think?
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.
Queries similar to this are made in other parts of the client. I agree that it's a good idea to merge them. I can tackle it in #489
1bcce5a
to
b14cbd9
Compare
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.
If it is ok for you, we can address my previous comment after the refactor of the store. But please add it to the issue so we don't forget about this. Thx!
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.
Looks good! Thank you!
closes #512
This PR changes the fields from
SyncSummary
from quantities to lists of elements. This information can be used to get information on the specific elements that were updated in a sync.