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(peersync)!: push local peer record to connected peer on change #6687

Merged
merged 7 commits into from
Nov 19, 2024

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Nov 13, 2024

Description

feat(peersync)!: push local peer record to connected peer on change

Motivation and Context

Connected peers should have an up-to-date and shareable address record for peers they are connected to. This PR adds this to the peer sync protocol.

How Has This Been Tested?

Manually - looked at logs to observe it working

What process can a PR reviewer use to test or verify this change?

Given node A connected to node B prior, a node C can request node B from Node A and always get a response.

Breaking Changes

  • None
  • Requires data directory to be deleted
  • Other - Please specify

BREAKING CHANGE: peer sync protocol is not compatible with previous versions

Copy link

github-actions bot commented Nov 13, 2024

Test Results (CI)

    3 files    126 suites   9m 39s ⏱️
1 161 tests 1 161 ✅ 0 💤 0 ❌
3 483 runs  3 483 ✅ 0 💤 0 ❌

Results for commit d8cc83b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 13, 2024

Test Results (Integration tests)

 2 files  10 suites   13m 55s ⏱️
23 tests 22 ✅ 0 💤 1 ❌
24 runs  23 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit d8cc83b.

♻️ This comment has been updated with latest results.

SWvheerden
SWvheerden previously approved these changes Nov 13, 2024
Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

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

Looks good

network/libp2p-peersync/src/behaviour.rs Outdated Show resolved Hide resolved
@sdbondi sdbondi force-pushed the libp2p2-update-peersync branch 2 times, most recently from bb03359 to f2a4eca Compare November 14, 2024 05:03
@sdbondi sdbondi force-pushed the libp2p2-update-peersync branch from f2a4eca to 4fb8fd7 Compare November 14, 2024 05:03
@sdbondi sdbondi force-pushed the libp2p2-update-peersync branch from f93973b to a91b1ef Compare November 14, 2024 08:55
@SWvheerden SWvheerden merged commit d62b40f into tari-project:feat-libp2p Nov 19, 2024
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants