From 43f8fb3a5d6e51c060821eb0ad2e5a03b1431e9b Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 20 Dec 2024 13:55:30 +0100 Subject: [PATCH] signer: Increase the feerate for commitment TXs and warn on failure This should get the couple of nodes that are stuck on a large commitment TX fee unstuck. We triple the feerate in order to not run into the deadlock, and we make the policy failure a warning instead. Once VLS reimplements the per-payment fee budget we should be able to tighten these again. --- libs/gl-client/src/signer/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libs/gl-client/src/signer/mod.rs b/libs/gl-client/src/signer/mod.rs index b07f05123..99c6574ff 100644 --- a/libs/gl-client/src/signer/mod.rs +++ b/libs/gl-client/src/signer/mod.rs @@ -134,6 +134,16 @@ impl Signer { ], }); + // TODO Remove this once VLS has implemented the fee budget + // per payment, rather than the fee budget per HTLC. + // Ref: https://github.com/Blockstream/greenlight/issues/538 + { + policy.max_feerate_per_kw = 75_000; + policy.filter.merge(PolicyFilter { + rules: vec![FilterRule::new_warn("policy-commitment-fee-range")], + }); + } + policy.filter.merge(PolicyFilter { // TODO: Remove once we have implemented zero invoice support rules: vec![