From 0403c19a9de4dd95e4de9acf72fb72f11464b341 Mon Sep 17 00:00:00 2001 From: cdecker Date: Mon, 9 Nov 2026 12:56:19 +0100 Subject: [PATCH] signer: Lower the min sweep feerate to 75 sat/kw The `SimplePolicy` default `min_feerate_per_kw` of 253 sat/kw comes from stacks where the signer builds its own sweeps. In Greenlight the transactions gated by this check are built by CLN: lightningd and onchaind derive the sweep feerate from their own backend-backed estimates and apply their own floors and worth-it checks before ever requesting a signature. During quiet-fee periods CLN's estimates fall below 253 sat/kw, and the signer then hard-fails `SIGN_PENALTY_TO_US` with 'policy failure: validate_justice_sweep: validate_sweep: validate_fee: feerate below minimum: 226 < 253', leaving justice sweeps unsigned until feerates recover. Since CLN will not produce sweeps anywhere near this range under normal conditions, the default floor contradicts CLN's fee policy rather than protecting against it. Set `min_feerate_per_kw` to 75 sat/kw (~0.3 sat/vB): low enough to never second-guess a CLN-built sweep, yet still a sanity check that rejects zero-fee or absurdly low transactions. --- CHANGELOG.md | 1 + libs/gl-client/src/signer/mod.rs | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18e3105d5..10e01b1f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ### Fixed - Fixed `signmessage` hanging forever and blocking all subsequent signing operations. The signer refuses `SIGN_MESSAGE` requests by design, so the node now rejects the RPC with an `Unimplemented` ("not supported") error instead of forwarding it to the serial hsmd queue. ([#739](https://github.com/Blockstream/greenlight/issues/739)) + - Fixed the signer rejecting justice-sweep signatures with a "feerate below minimum" policy failure when CLN builds sweeps at quiet-fee feerates below the 253 sat/kw default floor. In Greenlight CLN builds all sweep transactions and applies its own feerate floors, so the signer now uses a sanity-check floor of 75 sat/kw. ## [0.4.0] - 2026-05-21 diff --git a/libs/gl-client/src/signer/mod.rs b/libs/gl-client/src/signer/mod.rs index 707ada9d9..48eb9da75 100644 --- a/libs/gl-client/src/signer/mod.rs +++ b/libs/gl-client/src/signer/mod.rs @@ -266,6 +266,17 @@ impl Signer { let mut policy = lightning_signer::policy::simple_validator::make_default_simple_policy(network); + // The default floor of 253 sat/kw (~1 sat/vB) is meant for stacks + // where the signer builds its own sweeps. In Greenlight all sweep + // transactions, including justice sweeps, are built by CLN, which + // applies its own backend-derived feerate floor and worth-it checks + // before requesting the signature. During quiet-fee periods CLN's + // estimates fall below 253 sat/kw, and the signer then hard-fails + // `SIGN_PENALTY_TO_US` with 'feerate below minimum', stranding the + // sweep. Keep a sanity floor that still rejects zero-fee or absurdly + // low txs but never contradicts CLN's own fee policy. + policy.min_feerate_per_kw = 75; + policy.filter = PolicyFilter::default(); policy.filter.merge(PolicyFilter { // TODO: Remove once we have fully switched over to zero-fee anchors