lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.71k stars 2.09k forks source link

[feature]: Introducing maximum number of payments through one hop #7691

Open feelancer21 opened 1 year ago

feelancer21 commented 1 year ago

Is your feature request related to a problem? Please describe. I often have many pending htlcs due to rebelancing. When I look at them more closely, I notice that many payments often have a common hop that seems to have problems now due to a flood of htlcs. Partially one waits then days, until these were resolved.

Describe the solution you'd like From my point of view it therefore makes sense to limit the number of simultaneously open HTLC via a hop in the graph. For this a parameter for the router would have to be introduced in the lnd.conf.

Describe alternatives you've considered no idea

alexbosworth commented 1 year ago

a workaround is to use queryroute/sendtoroute and the ignore pairs argument to stop routing where you see commonality in pending htlcs

bitromortac commented 1 year ago

Currently, there's no tracking of inflight HTLCs in pathfinding, which would be a next step in improving it. We could add a penalty for stuck HTLCs when this is established.