Consider many first-hop paths to the same counterparty in routing#1100
Conversation
Previously we'd simply overwritten "the" first hop path to each counterparty when routing, however this results in us ignoring all channels except the last one in the `ChannelDetails` list per counterparty.
|
Note that this was a user-reported bug, so tagging it 0.0.102 to keep the "user reported bugs get fixed w/i one release" deadline. |
Codecov Report
@@ Coverage Diff @@
## main #1100 +/- ##
==========================================
- Coverage 90.64% 90.58% -0.06%
==========================================
Files 65 65
Lines 34226 34549 +323
==========================================
+ Hits 31024 31297 +273
- Misses 3202 3252 +50
Continue to review full report at Codecov.
|
valentinewallace
left a comment
There was a problem hiding this comment.
One q but seems legit and test fails as expected on main
valentinewallace
left a comment
There was a problem hiding this comment.
Looks fan-tastic
arik-so
left a comment
There was a problem hiding this comment.
Looks good to me. Only change I'd wish for is a more descriptive macro name than add_entry.
I'll let someone else tackle that in a followup - |
Previously we'd simply overwritten "the" first hop path to each
counterparty when routing, however this results in us ignoring all
channels except the last one in the
ChannelDetailslist percounterparty.