This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Addresses passed with --public-addr
get purged after a while
#7518
Labels
I3-bug
The node fails to follow expected behavior.
The
--public-addr
CLI option gives the possibility for the user to pass to the node its external IP addresses.The way it's implemented is that at startup we call
libp2p::Swarm::add_external_address
:substrate/client/network/src/service.rs
Lines 381 to 383 in 3654d1a
This, in turn, adds the address to the registry.
However, nodes continue to discover their (probably invalid) external IP address from other nodes.
Because of the way libp2p's Registry is implemented, the addresses passed with
--public-addr
will eventually get purged. This is obviously not supposed to happen.The detection is automatically done in
libp2p-identify
, so Substrate can't disable it.There seems to be lacking a way in libp2p to implement something like
--public-addr
.cc @mxinden @romanb
The text was updated successfully, but these errors were encountered: