Skip to content

[Bug]: Use new LSP policy limits #1856

@pwltr

Description

@pwltr

Describe the bug

When trying to open an imbalanced channel where the LSP balance is significantly low LDK throws an error when the LSP tries to open the channel.

Low priority because the UI currently doesn't allow for such channels but would be good to catch that at the channel order purchase request.

Reproduce

  1. Order a channel with Blocktank with clientBalance: 100000, lspBalance: 10000
  2. Channel won't open, see LDK error

Screenshots / Recording

No response

Operating system

iOS

Bitkit version

510f311

Log output

2024-05-22 13:20:37 INFO (JS): channel_manager_open_channel_request: {"counterparty_node_id":"03b9a456fb45d5ac98c02040d39aec77fa3eeb41fd22cf40b862b393bcfc43473a","requires_zero_conf":true,"supports_zero_conf":true,"requires_anchors_zero_fee_htlc_tx":true,"push_sat":100000,"temp_channel_id":"689dceda78d082ff02efa73870610ee669f2a489d22ace48a3c0952a839f2ddc","funding_satoshis":110000}
2024-05-22 13:20:37 INFO (JS): Accepting zero conf channel from peer 03b9a456fb45d5ac98c02040d39aec77fa3eeb41fd22cf40b862b393bcfc43473a
2024-05-22 13:20:37 ERROR (LDK): Funding amount (9340 sats) can't even pay fee for initial commitment transaction fee of 13590 sats. (lightning::ln::channelmanager 6036)
2024-05-22 13:20:37 DEBUG (SWIFT): Adding channel manager backup to queue
2024-05-22 13:20:37 DEBUG (SWIFT): Persisted channel manager to disk
2024-05-22 13:20:37 DEBUG (SWIFT): Error: channel_accept_fail. Message: 'Funding amount (9340 sats) can't even pay fee for initial commitment transaction fee of 13590 sats.'
2024-05-22 13:20:37 ERROR (JS): acceptChannel() failed: Error: Funding amount (9340 sats) can't even pay fee for initial commitment transaction fee of 13590 sats.
2024-05-22 13:20:37 ERROR (JS): Accept channel (trusted zero conf) error: "Funding amount (9340 sats) can't even pay fee for initial commitment transaction fee of 13590 sats."

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions