Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions feeadjuster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ and following forwarding events. There is a threshold for balance deltas that mu
also set the max htlc for channels according to available liquidity. This may reduce transaction failures but it will also reveal
information about what the current channel balance is.

## Installation

You need [uv](https://docs.astral.sh/uv/getting-started/installation/) to run this
plugin like a binary. After `uv` is installed you can simply run

```
lightning-cli plugin start /path/to/feeadjuster.py
```

For general plugin installation instructions see the repos main
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)

## Options

- `feeadjuster-deactivate-fuzz` boolean (default `False`) deactivates update threshold randomization and hysterisis
Expand Down
10 changes: 9 additions & 1 deletion feeadjuster/feeadjuster.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/usr/bin/env python3
#!/usr/bin/env -S uv run --script

# /// script
# requires-python = ">=3.9.2"
# dependencies = [
# "pyln-client>=24.11"
# ]
# ///

import random
import statistics
import time
Expand Down
18 changes: 18 additions & 0 deletions feeadjuster/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[project]
name = "feeadjuster"
version = "0.1.0"
description = "Dynamically adjusts fees according to channel balances"
readme = "README.md"
requires-python = ">=3.9.2"

dependencies = ["pyln-client>=24.11"]

[dependency-groups]
dev = [
"pytest>=7.4,<9",
"pytest-xdist>=3.7,<4",
"pytest-timeout>=2.4,<3",
"pyln-testing>=24.11.1",
"pyln-client>=24.11.1",
"pyln-proto>=24.11.1",
]
1 change: 0 additions & 1 deletion feeadjuster/requirements.txt

This file was deleted.

Loading
Loading