Uh oh!
There was an error while loading. Please reload this page.
Add ability to open channel / splice with all on-chain funds - #788
Conversation
👋 Thanks for assigning @tnull as a reviewer! |
ldk-reviews-bot
commented
Feb 14, 2026
🔔 1st Reminder Hey @tnull! This PR has been waiting for your review. |
ldk-reviews-bot
commented
Feb 16, 2026
🔔 2nd Reminder Hey @tnull! This PR has been waiting for your review. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
9e1c88d to
86e2792Comparebenthecarman
commented
Feb 17, 2026
Responded to review. Also added commit for splicing in with all funds |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…send DRY up the repeated pattern of building a temporary drain transaction to estimate fees. Both send_all_to_address (AllRetainingReserve) and the upcoming open_channel_with_all / splice_in_with_all need this logic, so extract it into shared helpers.
Adds open_channel_with_all which uses get_max_drain_amount to determine the largest funding amount after accounting for on-chain fees and anchor reserves
Adds splice_in_with_all which uses get_max_drain_amount with a shared input to determine the largest splice-in amount after accounting for on-chain fees and anchor reserves.
DRY up the anchor reserve calculation that was duplicated between Node::new_channel_anchor_reserve_sats and the OpenChannelRequest handler in event.rs.
86e2792 to
56730e9CompareUh oh!
There was an error while loading. Please reload this page.
…-all Add ability to open channel / splice with all on-chain funds
Closes#777
Uses the same fee estimation logic that
send_all_to_addressuses which can be hack but it works today.Tests generated with claude.