-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Optimize cluster sweep fee rates #4812
Copy link
Copy link
Closed
Labels
P3might get fixed, nice to havemight get fixed, nice to havebrainstormingLong term ideas/discussion/requests for feedbackLong term ideas/discussion/requests for feedbackfeesRelated to the fees paid for transactions (both LN and funding/commitment transactions)Related to the fees paid for transactions (both LN and funding/commitment transactions)optimizationutxo sweeping
Metadata
Metadata
Assignees
Labels
P3might get fixed, nice to havemight get fixed, nice to havebrainstormingLong term ideas/discussion/requests for feedbackLong term ideas/discussion/requests for feedbackfeesRelated to the fees paid for transactions (both LN and funding/commitment transactions)Related to the fees paid for transactions (both LN and funding/commitment transactions)optimizationutxo sweeping
The sweeper clusters input with similar fee rates together to save on fees. However, in such a cluster all inputs won't necessarily have the exact same fee preference, and hence we must choose a "compromise fee rate" to use when sweeping them together.
Currently we take just the average among the inputs in the cluster:
lnd/sweep/sweeper.go
Line 816 in 8ec4697
As pointed out by @cfromknecht (see #4779 (comment)) this is probably not optimal, for several reasons: