archethic-node
archethic-node copied to clipboard
ConnectionSupervisor does not handle restart properly
Describe the problem you discovered
We had an issue where the module Connection was being terminated very quickly due to an issue with libsodium. This resulted in a "reached max restart intensity" of the ConnectionSupervisor. The ConnectionSupervisor was restarted with an empty state, which means no Connection.
(screenshot of the network view of the incriminating node)
I used Archethic.P2P.connect_nodes(Archethic.P2P.MemTable.available_nodes)
to restart the connections.
Describe the solution you'd like
Somehow, if the ConnectionSupervisor is restarted, we need to reconnect to the nodes
Epic
No response