Gossipsub behaviour's add_explicit_peer with address
#6148
Closed
lukaszrzasik
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
That shouldn't happen; if a peer address was added the peer should be dialable as long as the address is reachable. Could you please provide some logs? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been testing a standalone gossipsub behaviour. I had to take care of the peer discovery because there's no other behaviour which could do it of course. I thought that using
add_explicit_peertogether withSwarm::add_peer_addresswould solve that problem but it didn't. The problem turned out to be that the dial failed because the peer's address was unknown even though I calledSwarm::add_peer_addressbefore that.I've ended up modifying
add_explicit_peerto take an additional parameterOption<Vec<Multiaddr>>.Maybe it makes sense to add a method something like
add_explicit_peer_with_addrwhich could be called when handlingFromSwarm::NewExternalAddrOfPeeror something similar?If it sounds good I can prepare a PR.
Beta Was this translation helpful? Give feedback.
All reactions