Can I hardcode a set of multiaddresses for a given nodeId in the peerstore ? #3060
Unanswered
hivenet-mathieu-lacage
asked this question in
Q&A
Replies: 1 comment
-
You can use
method on the peerstore. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'd like to make sure that a couple of peers are always resolved to a set of very specific multiaddrs for api users of the peerstore. The use-case here is for static relays used by autorelay: I would like to make sure that whatever other calls to AddAddrs/SetAddrs, the addresses seen by the addrsplosion.go code are the ones I have hardcoded.
Is there a better way to do this than to re-implement a peerstore with the desired semantics ?
Mathieu
Beta Was this translation helpful? Give feedback.
All reactions