...
- Mark the gateway peer NI as down when the LND fails to send a message
- Note although the LND notifications happen for all peers it is only pertinent on routers or for gateways.
- Mark the gateway peer NI as up when we receive an unsolicited message or when we receive a REPLY for a PING sent from the router checker.
- Mark the route as down if one of the gateway's interfaces are down, provided the
avoid_asym_router_failureis set to 1. - When picking a route, pick one with its gateway's state set to up.
Peer Requirements
...
- Do not check for peer aliveness when
...
- sending a message to a peer.
- Pick a route which has its gateway peer NI marked as up.
Implementation Details
The routing infrastructure currently performs the following functionality
...