-
Notifications
You must be signed in to change notification settings - Fork 184
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
P2P sync update for 0.13.2 hashing scheme #2033
Conversation
7d7d3f1
to
9365b80
Compare
029ef1b
to
4ea9127
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2033 +/- ##
==========================================
- Coverage 74.71% 74.70% -0.01%
==========================================
Files 110 111 +1
Lines 12105 12123 +18
==========================================
+ Hits 9044 9057 +13
- Misses 2364 2367 +3
- Partials 697 699 +2 ☔ View full report in Codecov by Sentry. |
d8e046e
to
fc29be7
Compare
706f1ba
to
9b2feef
Compare
ed21813
to
71bd8c4
Compare
71bd8c4
to
c61f54a
Compare
a170498
to
9d11219
Compare
7cd0479
to
4ae013b
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.
I don''t think I fully understand what is happening in this PR. We have a migration which is only responsible for storing p2p hashes but i don't fully understand what would happen if someone where to sync from an empty DB.
Can you please explain the work flow of this PR?
MigrationThis migration consists of 2 steps:
Hash calculationThe blockHash function now returns a hash and commitments. The version of these hashes matches the version of the block. Commitments must be post-0.13.2 if possible (there are some exceptions for deprecated networks and tests for them) Upd. |
4ae013b
to
cdf8552
Compare
01aed07
to
dfd37f9
Compare
472d5c0
to
19295e2
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.
Looks good to me
5cefc89
to
ea22ee2
Compare
ea22ee2
to
1800c6f
Compare
No description provided.