Tool for pretty printing and optimizing Lightning Network channels.
- Install poetry
poetry run ./suez
Channel fee policy
You can set channel fees by passing
poetry run ./suez --base-fee 1000 --fee-rate 200
You can override the channel fee policy by changing the
Example implementation does the following:
- sets lower fee rate for channels with mostly local balance
- sets higher fee rate for channels with mostly remote balance
- sets medium (close to specified) fee rate for balanced channels
You control the spread via the
--fee-spread argument. By default
--fee-spread is set to 0.0 (no spread).
poetry run ./suez --base-fee 1000 --fee-rate 500 --fee-spread 1.8
This will set the fee rate above 500 for channels with mostly remote balance and below 500
for channels with mostly local balance.
Lightning node support
Currently, Suez supports LND and c-lightning.
By default it uses LND (
You can use it with c-lightning as follows:
poetry run ./suez --client=c-lightning
If you need to pass additional options to the lncli/lightning-cli you can do so:
poetry run ./suez --client=c-lightning --client-args=--conf=/usr/local/etc/lightningd-bitcoin.conf
Adding support requires writing a client similar to
lndclient.py and instantiating it in