reth
reth copied to clipboard
Add to the peers or network handler the ability to (re)connect to a peer
Describe the feature
I see that if I use the network handler I could both remove peer and disconnect from peer:
network_clone.remove_peer(peer_id, PeerKind::Basic)
network_clone.disconnect_peer(peer_id)
In the first case we remove the peer from the peers list. In the latter , we disconnect the peer physically.
I need either the network or the peer handler to give us the chance to re-connect to a peer that I have just disconnected with.
I presume reth could do the automatic re-connection once a peer that was originally added to the peers list gets physically disconnected. Can you also confirm that ?
Additional context
No response