-
Notifications
You must be signed in to change notification settings - Fork 1
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
Dht diff #59
Dht diff #59
Conversation
05c1be8
to
21cc5f3
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.
Couple questions including the potential name change, but the code here looks good. Nice work 👍
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.
More tomorrow
2123b32
to
cf58810
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.
Great looking code! I made some suggestions.
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.
Some more comments
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.
Very happy with this code!
Co-authored-by: Jost <28270981+jost-s@users.noreply.github.com>
Co-authored-by: Jost <28270981+jost-s@users.noreply.github.com>
Co-authored-by: Jost <28270981+jost-s@users.noreply.github.com>
Top level DHT model and diff comparison to figure out which ops might be missing from the other.
I know there's a lot of code addition on this PR. I think the best place to start is probably the module documentation, then following that into the entry functions like
snapshot_minimal
. That should be good for a high-level understanding I hope. Then the test harnesscrates/dht/tests/harness.rs
is a good place to understand how the sync is done. That code will be more or less what gossip needs to do to use the code under test.If it helps, there is +1574 just from tests. So only half of this is actually new production code.
Following this PR I think there's a need to go back over the code in this crate and ensure consistent naming and documentation. I think the new documentation is consistent but I don't think it's entirely consistent with what's in here from previous PRs.