Skip to content

Instantly share code, notes, and snippets.

@rizalrenaldi
Last active March 22, 2022 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rizalrenaldi/96deb247d12b84bbb3e00409daa32037 to your computer and use it in GitHub Desktop.
Save rizalrenaldi/96deb247d12b84bbb3e00409daa32037 to your computer and use it in GitHub Desktop.
My charge-lnd config/policy — full set up: https://gist.github.com/rizalrenaldi/42331f5666bf6471be63072f7e2388c0
[default]
strategy = static
base_fee_msat = 0
fee_ppm = 97
[beginner-node]
# set lower fees on channels with smaller peers, that have few channels (4-8 ch$
# and limited node size (max_capacity=1_000_000)
node.max_capacity = 1_000_000
node.min_channels = 4
node.max_channels = 8
strategy = static
base_fee_msat = 0
fee_ppm = 1
[discourage-routing-out-of-balance]
chan.max_ratio = 0.1
chan.min_capacity = 250000
strategy = static
base_fee_msat = 10000
fee_ppm = 500
[encourage-routing-to-balance]
chan.min_ratio = 0.9
chan.min_capacity = 250000
strategy = static
base_fee_msat = 1
fee_ppm = 0
[proportional]
# 'proportional' can also be used to auto balance (lower fee rate when low remo$
# fee_ppm decreases linearly with the channel balance ratio (min_fee_ppm when r$
chan.min_ratio = 0.2
chan.max_ratio = 0.9
chan.min_capacity = 1_000_000
strategy = proportional
min_fee_ppm = 10
max_fee_ppm = 200
[recover-cost]
# use cost strategy if we are the initiator, using a base fee of 1 sat, and a c$
# channel is depleted to 100% outgoing
chan.initiator = true
strategy = cost
cost_factor = 1.5
[expensive]
# match channels where the peer node has set a high (>=8_000 ppm) fee rate
# and set the same fee rate on our side (strategy=match_peer)
chan.min_fee_ppm = 8_000
strategy = match_peer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment