Closed rahulghangas closed 3 years ago
I tested this change in darknode and didn't help. I checked the code, the Peer.Send
function doesn't get called anywhere. Maybe we need to do something similar ti transport.Send
.
Oh wait, right. Fixing that
This PR adds logic so that on failure of sending a message, a new expiry object is created for the signatory (peer). If after the minimum expiry duration no connection can be established with the peer, the peer is deleted from the peer table and unlinked from the transport layer