-
Notifications
You must be signed in to change notification settings - Fork 186
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
Add sync mode p2p CLI flag #2186
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## pnowosie/snap-sync-p2p #2186 +/- ##
=========================================================
Coverage ? 76.24%
=========================================================
Files ? 103
Lines ? 9557
Branches ? 0
=========================================================
Hits ? 7287
Misses ? 1612
Partials ? 658 ☔ View full report in Codecov by Sentry. |
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 work!
9f11d7e
to
220d93f
Compare
* Add sync mode p2p CLI flag * Return struct instead of interface * Change flag usage string * Remove SnapServer interface * Revert makefile * Minor fixes * Update docs
* Add sync mode p2p CLI flag * Return struct instead of interface * Change flag usage string * Remove SnapServer interface * Revert makefile * Minor fixes * Update docs
**This is a squash batch of 23 commits:** - Ashraf Basic snap algo .. Did something + #1925 - p2p client and looking at the syncService - finishing p2p handler - question - protobuf changes - snap server implements handler methods directly - fix snap server tests after refactor - refactor syncer to loop over iterator, add client message handling - p2p complete - no data exchange - Managed to sync ~200MB data - Fix: Trie iteration - test describing how storage of big contracts are responded - Storage ranges - fix unexpected contract change - Tweak message size params, trim logs - limit memory usage & verification - verification bug fix - Add sync mode p2p CLI flag (#2186) - Return struct instead of interface - Change flag usage string - Remove SnapServer interface - Revert makefile - Minor fixes - Update docs - Less logs, verification fixed - code improvements
Changes
p2p-sync-mode
flag which supports eithersnap
orfull
sync mode (default isfull
)Downloader
componentbaseSyncer
in thesnapSyncer
snapSync
andbaseSync
, so aDownloader
controls thissyncing
mechanism