lnd icon indicating copy to clipboard operation
lnd copied to clipboard

[feature]: sweep: batch inputs with similar deadlines

Open morehouse opened this issue 1 year ago • 1 comments

Currently the sweeper will only batch inputs that have the exact same deadline. This is reasonable for shorter deadlines, where a single block difference in deadline calls for significantly different fees.

But for no-deadline sweeps, an artificial deadline of 1008 blocks is used, which causes later no-deadline sweeps to have a different deadline and be batched separately. As discussed in https://github.com/lightningnetwork/lnd/pull/8751#discussion_r1605540030, we could save on fees if all no-deadline sweeps could be batched together.

morehouse avatar Jun 07 '24 20:06 morehouse

I would also appreciate that, Why sweeper batch window duration can be kept example just for non time sensitive sweeps? I loved this option to use for non time sensitive sweeps.

warioishere avatar Jun 09 '24 13:06 warioishere