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: IP is packed with port #1962

Merged
merged 6 commits into from
Jun 3, 2024

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.

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