Skip to content
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

Merged
merged 6 commits into from
Nov 1, 2023

Conversation

SWvheerden
Copy link
Collaborator

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

Copy link

github-actions bot commented Oct 31, 2023

Test Results (CI)

1 245 tests   1 245 ✔️  15m 21s ⏱️
     39 suites         0 💤
       1 files           0

Results for commit 086e7df.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Oct 31, 2023
Copy link

github-actions bot commented Oct 31, 2023

Test Results (Integration tests)

  2 files  +  2  11 suites  +11   16m 52s ⏱️ + 16m 52s
34 tests +34  33 ✔️ +33  0 💤 ±0  1 +1 
35 runs  +35  34 ✔️ +34  0 💤 ±0  1 +1 

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.

Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

(jointly reviewed)

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Nov 1, 2023
@SWvheerden SWvheerden merged commit e1c504a into tari-project:development Nov 1, 2023
13 of 14 checks passed
@SWvheerden SWvheerden deleted the sw_multi_peer branch November 1, 2023 12:49
SWvheerden pushed a commit that referenced this pull request Nov 1, 2023
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sync is always done with a single peer
3 participants