ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.85k stars 902 forks source link

Askrene fixes and enhancements #7640

Closed rustyrussell closed 1 month ago

rustyrussell commented 2 months ago

This fixes some corner cases which existed in askrene because I didn't get the nuance of @Lagrang3's MCF code. It makes a clearly-separate post "refinement" pass, which handles the finer details of adding fees, taking into account minimum htlc amounts, and also adds accommodations for the reduced capacity of local channels when we add more than one HTLC.

Lagrang3 commented 2 months ago

I love this ac38c56, it is basically channel_maximum_forward Rustyfied.