Closed
Description
In general, lightning nodes should constantly be pinging their peers to ensure connectivity and ensure that we have a peer marked disconnected before we get a payment to route through them that gets stuck. This will require:
- Some general API in peer_handler that indicates a timer tick (doesn't have to be that often, just enough to quantize pings and make sure we get pongs back by the next tick).
- A regular ping generation,
- Disconnecting a peer if no pong is heard by the next timer tick.