Files
lnflow/examples/basic_policy.conf
2025-07-23 10:31:08 +02:00

51 lines
1.1 KiB
Plaintext

# Basic Policy Configuration - Compatible with charge-lnd but with inbound fees
# This configuration demonstrates a simple setup for most Lightning nodes
[default]
# Default settings for all channels (non-final policy)
final = false
base_fee_msat = 0
fee_ppm = 1000
time_lock_delta = 80
strategy = static
[balance-drain]
# Channels with too much local balance (>80%) - encourage outbound routing
chan.min_ratio = 0.8
strategy = balance_based
fee_ppm = 500
inbound_fee_ppm = -100
inbound_base_fee_msat = -500
priority = 10
[balance-preserve]
# Channels with low local balance (<20%) - preserve liquidity
chan.max_ratio = 0.2
strategy = balance_based
fee_ppm = 2000
inbound_fee_ppm = 25
priority = 10
[high-capacity]
# Large channels get premium treatment
chan.min_capacity = 5000000
strategy = static
fee_ppm = 1500
inbound_fee_ppm = -25
priority = 20
[inactive-channels]
# Wake up dormant channels with attractive rates
activity.level = inactive
strategy = static
fee_ppm = 200
inbound_fee_ppm = -150
max_fee_ppm = 500
priority = 30
[catch-all]
# Final policy for any remaining channels
strategy = static
fee_ppm = 1000
inbound_fee_ppm = 0
priority = 100