-
Notifications
You must be signed in to change notification settings - Fork 925
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
fraud: implement fraud sync #917
Conversation
bd3d9b2
to
3420c23
Compare
261749d
to
f566783
Compare
6ab8387
to
74f4f7e
Compare
Codecov Report
@@ Coverage Diff @@
## main celestiaorg/celestia-node#917 +/- ##
==========================================
- Coverage 57.58% 56.74% -0.85%
==========================================
Files 133 135 +2
Lines 8307 8965 +658
==========================================
+ Hits 4784 5087 +303
- Misses 3050 3342 +292
- Partials 473 536 +63
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
2e827d8
to
d6cefff
Compare
d6cefff
to
fd7d795
Compare
0ca476b
to
755c6e9
Compare
e7084f2
to
aaaa7c1
Compare
start syncing was rework in 2c232ee It was added as a separate commit in order to show the difference between two approaches. @Wondertan , please take a look at diff. |
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 small nits and 🚀
f881186
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.
Peer cache review
f881186
to
06aecc3
Compare
f9e2238
to
4146333
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.
🙏
What's the status of the broken test here? Is it coming from this PR? |
No. Fraud sync does not affect full reconstruction test. |
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 fine, made one minor comment re using context.TODO in test
One thing is: I don't like this: f.registerProofTopics(getRegisteredProofTypes()...);
I'm okay with merging as is, but I hope we can make this a bit nicer.
8181c1a
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.
morge
* fraud: add fraud message * fraud: implement fraud sync logic * fraud: start syncing proofs once node checks the local storage * doc: update an adr * fraud: add peer cache to avoid multiple requests to the same peer * fraud: join topics for all available proof types
* fraud: add fraud message * fraud: implement fraud sync logic * fraud: start syncing proofs once node checks the local storage * doc: update an adr * fraud: add peer cache to avoid multiple requests to the same peer * fraud: join topics for all available proof types
Resolves #536