Skip to content

Conversation

@richard-ramos
Copy link
Member

@richard-ramos richard-ramos commented Dec 19, 2024

Required by status-im/status-go#5946

The interaction with libwaku is done thru multiaddresses instead of peerID, because the peerstore is not exposed like we do in go-waku. So, to make it possible to use both go-waku and nwaku in status-go (depending on a build flag), changes are done both in go-waku and the api package to use multiaddresses and/or peer.AddrInfo where needed.

It's worth mentioning that the cases in which a peer.AddrInfo are those in which a node can have more than one multiaddress (like the storenodes), and in these cases the peer.AddrInfo will be translated into a comma separated string containing all the multiaddresses like it is done here: https://github.com/status-im/status-go/blob/1348510acfdfd93dbe5fc5b0a23e9caf532272a3/wakuv2/nwaku.go#L2904-L2910

This PR should not be merged until status-im/status-go#5946 is ready to be merged

cc: @Ivansete-status @gabrielmer

@status-im-auto
Copy link

status-im-auto commented Dec 19, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 1ed0036 #1 2024-12-19 18:50:05 ~2 min unknown 📄log
✔️ 498022a #2 2024-12-19 20:18:15 ~2 min unknown 📄log

@richard-ramos richard-ramos force-pushed the peerInfo branch 2 times, most recently from 953a82a to bf357f2 Compare January 22, 2025 18:21
@richard-ramos richard-ramos changed the title refactor: use peerInfo instead of peerID refactor: use peerInfo and multiaddresses instead of peerID Jan 22, 2025
@richard-ramos richard-ramos marked this pull request as ready for review January 22, 2025 18:35
Copy link

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for it! 💯
Just one nitpick comment

Copy link
Collaborator

@chaitanyaprem chaitanyaprem left a comment

Choose a reason for hiding this comment

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

Changes LGTM

@gabrielmer gabrielmer merged commit e68fcdb into master Mar 13, 2025
11 of 12 checks passed
@gabrielmer gabrielmer deleted the peerInfo branch March 13, 2025 16:15
@github-project-automation github-project-automation bot moved this to Done in Waku Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants