alby-hub/lnclient
Roland 979644cf68
fix: limit LSP opening fees for JIT channel invoices (#2535)
* fix: limit LSP opening fees for JIT channel invoices

JIT channel invoices are now created with a maximum LSP opening fee
instead of no limit: the fee the LSP advertises in its LSPS2 opening fee
menu for the payment size, bounded by an absolute ceiling of 5000 sats
or 10% of the payment, whichever is greater. Invoice creation fails if
the LSP quotes a fee above this limit.

The minimum JIT payment size calculation now uses the same ceiling so
the advertised receivable range matches what invoice creation accepts.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: validate invoice expiry range and guard LSPS2 cache reads

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-12 13:38:13 +07:00
..
bark fix: bark onboarding, migration messaging and receive settlement for bark 0.6.0 (#2523) 2026-08-08 16:39:02 +07:00
cashu chore: remove json tags from lnclient models (#2375) 2026-05-25 20:26:07 +05:30
cln feat: generate CLN invoice preimage ourselves to support sub-wallets (#2412) 2026-06-08 21:20:51 +07:00
ldk fix: limit LSP opening fees for JIT channel invoices (#2535) 2026-08-12 13:38:13 +07:00
lnd build(deps): bump github.com/lightningnetwork/lnd from 0.20.1-beta to 0.21.0-beta (#2402) 2026-07-27 19:48:54 +07:00
phoenixd fix: fallback to outgoing payments in Phoenixd LookupInvoice (#2447) 2026-08-06 17:24:10 +07:00
models.go chore: remove json tags from lnclient models (#2375) 2026-05-25 20:26:07 +05:30