Skip to content

Splice and open channels with all on-chain funds#58

Open
benthecarman wants to merge 1 commit into
masterfrom
splice-all
Open

Splice and open channels with all on-chain funds#58
benthecarman wants to merge 1 commit into
masterfrom
splice-all

Conversation

@benthecarman
Copy link
Copy Markdown
Collaborator

@benthecarman benthecarman commented May 11, 2026

Closes #47

Use ldk-node's new splice_in_with_all and open_channel_with_all APIs, which compute the maximum drain amount net of fees and anchor reserves. This replaces the hand-rolled fee subtraction on splice and the hardcoded fee constant on channel open.

Drop the amt parameter from the LightningWallet trait's open_channel_with_lsp and splice_to_lsp_channel methods. Every implementation discarded it; the signature now matches the contract.

Use ldk-node's new splice_in_with_all and open_channel_with_all
APIs, which compute the maximum drain amount net of fees and
anchor reserves. This replaces the hand-rolled fee subtraction
on splice and the hardcoded fee constant on channel open.

Drop the amt parameter from the LightningWallet trait's
open_channel_with_lsp and splice_to_lsp_channel methods. Every
implementation discarded it; the signature now matches the
contract.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

more robustly splice in all funds

1 participant