Insufficient Peers Error When Node Rejoins #5847
Unanswered
vinay10949
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When a node goes down and rejoins the network using Rust libp2p, it encounters an
insufficient peers
error. We would like to understand which parameters need to be adjusted to mitigate this issue.Code Context:
The following code initializes the libp2p swarm:
The swarm is initialized as follows:
Expected Behavior:
When a node rejoins the network, it should successfully reconnect to peers and resume normal operations.
Actual Behavior:
After rejoining, the node logs an
insufficient peers
error.Questions:
gossipsub
,kademlia
, orswarm
that should be adjusted to handle node reconnection better?query_timeout
,heartbeat_interval
, orduplicate_cache_time
help in this scenario?Any guidance on resolving this issue would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions