-
Notifications
You must be signed in to change notification settings - Fork 220
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
feat: allow multiple initial sync peers #5890
Conversation
Test Results (Integration tests) 2 files + 2 11 suites +11 16m 52s ⏱️ + 16m 52s For more details on these failures, see this check. Results for commit 086e7df. ± Comparison against base commit 4ca664e. ♻️ This comment has been updated with latest results. |
base_layer/core/src/base_node/state_machine_service/states/listening.rs
Outdated
Show resolved
Hide resolved
base_layer/core/src/base_node/state_machine_service/states/listening.rs
Outdated
Show resolved
Hide resolved
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.
utACK
(jointly reviewed)
Description --- Updates a latency test to be deterministic and exercise more cases. Motivation and Context --- A recent update in #5890 adds a test for sorting peers by latency. Its test is randomized and may not fully exercise all the desired cases. This PR makes a simple change that updates the test to be deterministic. How Has This Been Tested? --- It's a test, which passes! What process can a PR reviewer use to test or verify this change? --- Confirm that the test does what it says it does.
Description
Allow syncing from multiple peers initially
Motivation and Context
See issue: #5852
This allows a node to wait until it gets 5 ChainMetaData during initial sync until it goes to header sync.
How Has This Been Tested?
Unit tests
Fixes: #5852