-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fix bootstrap without known validators #25293
Conversation
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 looks good to me. How has it been tested?
@brooksprumo You are right. It so little that I just compile. UPD. My bad 🙊🙊🙊 Ran the original build by mistake. Everything is fine |
Checked:
Everyone starts downloading a snapshot without known validators. |
Excellent, glad to hear! Can you confirm that all three versions tested had incremental snapshots enabled? I know master and v1.10 have incremental snapshots enabled by default, but v1.9 does not. |
Yes, all three with |
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.
bc17c76
to
4dd16ed
Compare
Codecov Report
@@ Coverage Diff @@
## master #25293 +/- ##
=========================================
Coverage 82.0% 82.1%
=========================================
Files 598 614 +16
Lines 165882 169315 +3433
=========================================
+ Hits 136125 139016 +2891
- Misses 29757 30299 +542 |
(cherry picked from commit 2412276) # Conflicts: # validator/src/bootstrap.rs
(cherry picked from commit 2412276) # Conflicts: # validator/src/bootstrap.rs
Problem
Validator with --incremental-snapshots can't start to download snapshot if no one --known-validator set (not depended from --only-known-rpc)
Summary of Changes
Do not match snapshot hashes with snapshot hashes of known validators if no one is set.
Fixes #23927