Skip to content

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

Merged
benthecarman merged 3 commits into
masterfrom
splice-all
May 12, 2026
Merged

Splice and open channels with all on-chain funds#58
benthecarman merged 3 commits 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>
The dummy trusted wallet can miss payment wakeups or leave the
rebalancer waiting after a failed LDK payment.

Bound the dummy payment wait path and route test-only LDK shutdown
through async timeouts so failures surface as test errors instead of
CI stalls.
Enable CI to show Rust integration test logs by running both Rust
test jobs with nocapture and setting RUST_LOG for the SDK,
rebalancer, LDK node, and test harness targets.

Mark the integration tests with the existing test-log attribute and
add progress breadcrumbs around shared setup, polling waits, test
execution, and cleanup. This should make future stalls show the phase
and test location that stopped making progress.
@benthecarman benthecarman merged commit a346206 into master May 12, 2026
2 checks passed
@benthecarman benthecarman deleted the splice-all branch May 12, 2026 22:52
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