Skip to content

Log additional details when ignoring first hops #2771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

tnull
Copy link
Contributor

@tnull tnull commented Dec 4, 2023

Users are often confused when we fail to find a route due to some requirements on the first hop are not being met. While we now take note and log such candidates, we still previously required users to check additional details to figure out why exactly the router refused to route over a particular first hop.

Here, we add additional details to our TRACE logging, in particular for ChannelDetails::next_outbound_htlc_limit_msat and ChannelDetails::next_outbound_htlc_minimum_msat, when they are relevant.

@codecov-commenter
Copy link

codecov-commenter commented Dec 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ac06a6a) 88.59% compared to head (52ecce9) 88.59%.
Report is 9 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #2771    +/-   ##
========================================
  Coverage   88.59%   88.59%            
========================================
  Files         115      115            
  Lines       90254    90456   +202     
  Branches    90254    90456   +202     
========================================
+ Hits        79965    80144   +179     
- Misses       7879     7903    +24     
+ Partials     2410     2409     -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Users are often confused when we fail to find a route due to some
requirements on the first hop are not being met. While we now take note
and log such candidates, we still previously required users to check
additional details to figure out why exactly the router refused to route
over a particular first hop.

Here, we add additional TRACE logging, in particular for
`ChannelDetails::next_outbound_htlc_limit_msat` and
`ChannelDetails::next_outbound_htlc_minimum_msat` when they are
relevant.
@tnull tnull force-pushed the 2023-12-log-details-for-ignored-first-hop branch from dab7f6f to 52ecce9 Compare December 4, 2023 18:08
@wpaulino wpaulino merged commit 7f96446 into lightningdevkit:main Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants