Skip to content

Can I hardcode a set of multiaddresses for a given nodeId in the peerstore ? #3060

Discussion options

You must be logged in to vote

I don't think libp2p offers a way to do that, but maybe it should?

What you can do though is wrap the libp2p-provided PeerStore interface, and implement special logic for those couple of peers.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@hivenet-mathieu-lacage
Comment options

Comment options

You must be logged in to vote
1 reply
@hivenet-mathieu-lacage
Comment options

Answer selected by hivenet-mathieu-lacage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants