cln-plugins/persistent-channels
2025-12-05 20:39:04 +01:00
..
persistent-channels.py persistent-channels: migrate to uv shebang 2025-12-05 20:39:04 +01:00
pyproject.toml persistent-channels: migrate to uv shebang 2025-12-05 20:39:04 +01:00
README.md persistent-channels: migrate to uv shebang 2025-12-05 20:39:04 +01:00
test_persistent-channels.py pytest: Rename start tests to reflect the plugin under test 2019-12-27 17:17:58 +01:00
uv.lock persistent-channels: migrate to uv shebang 2025-12-05 20:39:04 +01:00

Installation

You need uv to run this plugin like a binary. After uv is installed you can simply run

lightning-cli plugin start /path/to/persistent-channels.py

For general plugin installation instructions see the repos main README.md

Persistent Channels plugin

lightningd automatically tracks channels internally and will make sure to reconnect to a peer if it has a channel open with it. However, it only tracks the channel itself, it does not re-open a channel that was closed.

The persistent channels plugin allows you to describe a number of channels you'd like to have open at any time and the plugin will attempt to maintain that state. The plugin keeps a list of desired channels that should be opened and operational and will check every 30 seconds if it needs to open a new channel, or re-open a channel that is currently being closed.