It is impossible to manually retry connection if PeerID got blacklisted from dialling.
The only way is to wait for blacklisting to expire or stop and start node.
swarm.connect() with mutiaddr of the node that is offline, get expected connection errorswarm.connect() again
js-ipfs in Brave with TCP transport enabled (https://github.com/ipfs-shipyard/ipfs-companion/issues/716)
This feels like a bug.
Manual swarm connect should override any automated blacklisting, making it possible to connect as soon as remote node is up, without waiting for blacklisting to expire.
May not directly be related, but the resolution should help here, is dialing addresses in libp2p https://github.com/libp2p/js-libp2p/issues/451, instead of peers. I've started working on that and will work on making it so that when libp2p receives an address dial request it clears the deny list for the peer. (Ideally we'll have addresses be denied in the future, instead of peers)
Most helpful comment
May not directly be related, but the resolution should help here, is dialing addresses in libp2p https://github.com/libp2p/js-libp2p/issues/451, instead of peers. I've started working on that and will work on making it so that when libp2p receives an address dial request it clears the deny list for the peer. (Ideally we'll have addresses be denied in the future, instead of peers)