Limit inbound fee updates by dust exposure instead of our estimator 2021-06-auto-chan-fee-updates
authorMatt Corallo <git@bluematt.me>
Wed, 30 Jun 2021 03:16:01 +0000 (03:16 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 13 Aug 2021 21:54:50 +0000 (21:54 +0000)
commitd3af49e9f07fc28d104f1f1dbcf8e216b65e9f89
treeb6e7853b9aaadc32f297eafb6747c6678ab6391c
parent01e8ff5ed85c1ecb890350829c9c250fd5f2a793
Limit inbound fee updates by dust exposure instead of our estimator

Inbound fee udpates are rather broken in lightning as they can
impact the non-fundee despite the funder paying the fee, but only
in the dust exposure it places on the fundee.

At least lnd is fairly aggressively high in their (non-anchor) fee
estimation, running the risk of force-closure. Further, because we
relied on a fee estimator we don't have full control over, we
were assuming our users' fees are particularly conservative, and
thus were at a lot of risk to force-closures.

This converts our fee limiting to use an absurd upper bound,
focusing on whether we are over-exposed to in-flight dust when we
receive an update_fee.
lightning/src/ln/channel.rs