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

fix!: use configured network string in networking protocol #864

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Jan 3, 2024

Description

Use string from Network::as_str in the protocol identifier

Motivation and Context

This change uses the configured network in the /tari/{network}/{version} protocol string. This string is used to identify different networks. If peers are on a different network (by libp2p identify) the peers disconnect.

How Has This Been Tested?

Partially manually by checking that the protocol string is set per the network. Cucumbers also partially test this case.

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

Try connect two VNs, one with --network localnet and the other with --network igor

Breaking Changes

  • None
  • Requires data directory to be deleted
  • Other - previous nodes will not stay connected to new nodes and vice versa

Copy link

github-actions bot commented Jan 3, 2024

Test Results (CI)

188 tests  ±0   188 ✅ ±0   1h 18m 38s ⏱️ - 17m 45s
 51 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit cf18cec. ± Comparison against base commit 3b769ec.

Copy link
Collaborator

@mrnaveira mrnaveira left a comment

Choose a reason for hiding this comment

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

LGTM

@sdbondi sdbondi changed the title fix: use configured network string in networking protocol fix!: use configured network string in networking protocol Jan 11, 2024
@sdbondi sdbondi added this pull request to the merge queue Jan 11, 2024
Merged via the queue into tari-project:development with commit b7ccff2 Jan 11, 2024
12 checks passed
@sdbondi sdbondi deleted the tari-dan-network branch January 11, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants