-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
As is, we have an internal sub-system that automatically enables/disables channels based on the uptime of the peers we have channels opened with. This works well to ensure that we only advertise a channel as "enabled", if we have a stable connection with the channel peer. However, we've received a number of requests for routing node operators and businesses to be able to manually enable/disable channel, independent of the current peer uptime signal. In lieu of such a feature, some users have started to use UpdateChanPolicy to advertise very high fees to discourage routing through a channel.
This new could should ideally (?) live in the routing sub-server, or may trigger splitting some calls of that sub-server (like the htlc interception API) into a new sub-server?
One important implementation detail here is that if a user manually enables/disables a channel, then the current enable/disable sub-system should ignore the channel from there on out. We may also want to add the ability to return the channel to an "auto" mode, which relinquishes control of the channel availability back to the designated sub-system.