File tree Expand file tree Collapse file tree 5 files changed +1545
-2
lines changed Expand file tree Collapse file tree 5 files changed +1545
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,18 @@ and following forwarding events. There is a threshold for balance deltas that mu
55also set the max htlc for channels according to available liquidity. This may reduce transaction failures but it will also reveal
66information about what the current channel balance is.
77
8+ ## Installation
9+
10+ You need [ uv] ( https://docs.astral.sh/uv/getting-started/installation/ ) to run this
11+ plugin like a binary. After ` uv ` is installed you can simply run
12+
13+ ```
14+ lightning-cli plugin start /path/to/feeadjuster.py
15+ ```
16+
17+ For general plugin installation instructions see the repos main
18+ [ README.md] ( https://github.com/lightningd/plugins/blob/master/README.md#Installation )
19+
820## Options
921
1022- ` feeadjuster-deactivate-fuzz ` boolean (default ` False ` ) deactivates update threshold randomization and hysterisis
Original file line number Diff line number Diff line change 1- #!/usr/bin/env python3
1+ #!/usr/bin/env -S uv run --script
2+
3+ # /// script
4+ # requires-python = ">=3.9.2"
5+ # dependencies = [
6+ # "pyln-client>=24.11"
7+ # ]
8+ # ///
9+
210import random
311import statistics
412import time
Original file line number Diff line number Diff line change 1+ [project ]
2+ name = " feeadjuster"
3+ version = " 0.1.0"
4+ description = " Dynamically adjusts fees according to channel balances"
5+ readme = " README.md"
6+ requires-python = " >=3.9.2"
7+
8+ [dependency-groups ]
9+ dev = [
10+ " pytest>=7.4,<9" ,
11+ " pytest-xdist>=3.7,<4" ,
12+ " pytest-timeout>=2.4,<3" ,
13+ " pyln-testing>=24.11.1" ,
14+ " pyln-client>=24.11.1" ,
15+ " pyln-proto>=24.11.1" ,
16+ ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments