Ignore partially-pruned channels during routing
If we prune one side of a channel's ChannelUpdateInfo that means the node hasn't been online for two weeks (as they haven't generated a new channel_update in that time). In such cases, even if we haven't yet pruned the channel entirely, we should definitely not be treating these channels as candidates for routing.
Fixes #1824
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 90.54%. Comparing base (
37c431a) to head (4fd8cb8). Report is 29 commits behind head on main.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@ Coverage Diff @@
## main #3038 +/- ##
==========================================
+ Coverage 89.85% 90.54% +0.69%
==========================================
Files 116 116
Lines 96237 102306 +6069
Branches 96237 102306 +6069
==========================================
+ Hits 86471 92637 +6166
- Misses 7206 7214 +8
+ Partials 2560 2455 -105
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.