Skip to content

Fix: IP is packed with port#1962

Merged
thealligatorking merged 6 commits intoopentensor:stagingfrom
dgagn:ovior/fix-networking-ipv6
Jun 3, 2024
Merged

Fix: IP is packed with port#1962
thealligatorking merged 6 commits intoopentensor:stagingfrom
dgagn:ovior/fix-networking-ipv6

Conversation

@dgagn
Copy link
Contributor

@dgagn dgagn commented May 31, 2024

Bug

The IP is packed with the port. This is a temporary fix until the underlying issue is fixed in Subtensor. This fix ensures that Bittensor handles all versions of IPs consistently and maintains compatibility across versions.

Description of the Change

The change corrects the unpacking logic for encoded IP and port values. The function now accurately extracts the IP address and port from the encoded integer, correctly distinguishing between IPv4 and IPv6 addresses.

Alternate Designs

Other alternatives considered included:

  1. Fixing the issue directly in Subtensor to send the correct AxonInfo struct on the chain.

Possible Drawbacks

None that I can think of, since it fallbacks to the old method if it is not encoded.

Release Notes

Fixed an issue with unpacking encoded IP and port values.

@thealligatorking thealligatorking changed the base branch from staging to release/7.0.1 June 3, 2024 18:15
@thealligatorking thealligatorking changed the base branch from release/7.0.1 to staging June 3, 2024 18:15
@thealligatorking thealligatorking merged commit d88a743 into opentensor:staging Jun 3, 2024
thealligatorking added a commit that referenced this pull request Jun 3, 2024
thealligatorking added a commit that referenced this pull request Jun 4, 2024
camfairchild added a commit that referenced this pull request Jun 5, 2024
thealligatorking added a commit that referenced this pull request Jun 5, 2024
thealligatorking pushed a commit that referenced this pull request Jun 5, 2024
@thealligatorking thealligatorking mentioned this pull request Jun 12, 2024
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