Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

chat-with-rendezvous: The provided host does loose addresses #23

Open
stefanhans opened this issue Nov 13, 2018 · 2 comments
Open

chat-with-rendezvous: The provided host does loose addresses #23

stefanhans opened this issue Nov 13, 2018 · 2 comments

Comments

@stefanhans
Copy link

After the host with its []ma.Multiaddr addresses were kadDht.Provide provided and kadDht.FindProviders found again by the same host the addresses were lost

@stefanhans stefanhans changed the title The provided host does loose addresses chat-with-rendezvous: The provided host does loose addresses Nov 13, 2018
@upperwal
Copy link
Contributor

Can you elaborate?

Do you mean the same host calling Provide followed by FindProviders can't see it's own addresses in the list?

@stefanhans
Copy link
Author

Hi @upperwal,

I have elaborated it. Here is what I found:

host.Peerstore().SetAddrs(host.ID(), host.Addrs(), peerstore.ConnectedAddrTTL) is needed to set the addresses in the peerstore.

Cheers, Stefan

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants