]> git.bitcoin.ninja Git - rust-lightning/commit
Penalize large HTLCs relative to channels in default `Scorer`
authorMatt Corallo <git@bluematt.me>
Fri, 12 Nov 2021 04:16:23 +0000 (04:16 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 16 Nov 2021 20:58:04 +0000 (20:58 +0000)
commit9bec35ddde1750359c47b0a83f820ab7287cfd03
tree43ec6180043ce24339a300d220807676c2a195f9
parent8dc7cfab3af7e26cddd8c65a913d5ee021907442
Penalize large HTLCs relative to channels in default `Scorer`

Sending HTLCs which are any greater than a very small fraction of the
channel size tend to fail at a much higher rate. Thus, by default
we start applying a penalty at only 1/8th the channel size and
increase it linearly as the amount reaches the channel's capacity,
20 msat per 1024th of the channel capacity.
lightning/src/routing/scorer.rs