rust-lightning icon indicating copy to clipboard operation
rust-lightning copied to clipboard

Ignore partially-pruned channels during routing

Open TheBlueMatt opened this issue 1 year ago • 1 comments

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

TheBlueMatt avatar May 06 '24 01:05 TheBlueMatt

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.

codecov-commenter avatar May 09 '24 15:05 codecov-commenter