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

Peer discovery not working with mocknet on and go-multiaddr v0.12.4 #2837

Closed
sstanculeanu opened this issue Jun 13, 2024 · 3 comments
Closed

Comments

@sstanculeanu
Copy link
Contributor

Hello,

While trying to update our dependency of go-libp2p from v0.28.2 to v0.34.0(please find below a capture with old + new versions of the libs 👇 ), we noticed that the peer discovery does not work anymore with mocknet.

Digging a bit deeper, we localized the issue: it looks like the hardcoded ip6 multiaddr from GenPeerWithOptions is not compatible anymore with the latest release of go-multiaddr with the newly added ip6 restriction. isPublic is now always false here for the hardcoded address.

This leads to the multiaddr not being saved into the peerstore, thus peer discovery not working.

I've created a simple test in order to highlight the issue, which can be found on this repo.

image

Thanks

@sukunrt
Copy link
Member

sukunrt commented Jun 13, 2024

This will be fixed by v0.35.1
It's fixed on master by #2820

@sstanculeanu
Copy link
Contributor Author

sstanculeanu commented Jun 13, 2024

Re-tested with master branch, looks good, thank you 🙏

@sukunrt
Copy link
Member

sukunrt commented Jun 14, 2024

V0.35.1 is out!

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

No branches or pull requests

2 participants