lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.58k stars 2.06k forks source link

[feature]: sweep: implement alternative fee functions #8763

Open morehouse opened 2 months ago

morehouse commented 2 months ago

The current LinearFeeFunction is reasonable for short deadlines (e.g., < 10 blocks) where it is critical to confirm things quickly, but it may be overly aggressive for longer deadlines (e.g., 80+ blocks).

By implementing other fee curves we can optimize for different deadlines and save fees. See @yyforyongyu's thorough evaluation of several curves.