-
Notifications
You must be signed in to change notification settings - Fork 9
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: adds transitive sharing of peer information #618
Conversation
5b74e9d
to
9e8d80e
Compare
a9931a3
to
285bc5f
Compare
assert!(is_bi_connected(&test_runner_a, &test_runner_b).await?); | ||
assert!(is_bi_connected(&test_runner_b, &test_runner_c).await?); | ||
// We expect that a and c find each other through b and become connected | ||
assert!(is_bi_connected(&test_runner_a, &test_runner_c).await?); |
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 is the key test, it shows peers can find each other transitively and connect.
4892678
to
d9cdbec
Compare
285bc5f
to
2d040d1
Compare
2d040d1
to
baea692
Compare
817ebc7
to
baea692
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.
One question about the tests but overall looks good!
This PR failed the merge queue due to a test I wrote. Looked at it to see if there was potential flaky behavior and I don't see any. It's been passing and I can't reproduce so I'm a bit confused.. somehow the last event wasn't ordering in the failure. Submitted it again to see if it fails again. |
With this change all the pieces are in place such that peers can discover peers from connected peers and connect to those peers.
Fixes: #605
Fixes: #606