Commit 3c8cc56
committed
Add per-peer profit scoring
We create a new actor that keeps track of payment statistics across our
peers and rank them to identify the top profit earners. Based on those
statistics, the actor issues recommendations to:
- allocate more liquidity towards nodes that are generating revenue and
may run out of liquidity in the next few days
- reclaim liquidity from inactive channels
- change our relay fees to optimize increases or decreases in outgoing
flow and volume1 parent f777814 commit 3c8cc56
File tree
3 files changed
+1157
-1
lines changed- eclair-core/src
- main/scala/fr/acinq/eclair
- profit
- test/scala/fr/acinq/eclair/profit
3 files changed
+1157
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
400 | 401 | | |
401 | 402 | | |
402 | 403 | | |
403 | | - | |
404 | 404 | | |
| 405 | + | |
405 | 406 | | |
406 | 407 | | |
407 | 408 | | |
| |||
0 commit comments