Skip to content
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

Introduce &RoutingFees to channel_penalty_msat #2510

Conversation

jbesraa
Copy link
Contributor

@jbesraa jbesraa commented Aug 21, 2023

resolves #2509

This can be used to introduce costumzied filters based on fees
} else {
let curr_hop_path_idx = path.hops.len() - 1 - idx;
scorer.channel_penalty_msat(hop.short_channel_id, &NodeId::from_pubkey(&path.hops[curr_hop_path_idx - 1].pubkey), &NodeId::from_pubkey(&hop.pubkey), usage, &());
scorer.channel_penalty_msat(hop.short_channel_id, &NodeId::from_pubkey(&path.hops[curr_hop_path_idx - 1].pubkey), &NodeId::from_pubkey(&hop.pubkey), usage, &(), &RoutingFees { base_msat: 0, proportional_millionths: 0 });
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about this one..
how to get base_mast and proportional_millionths from RouteHop tho?

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 99.28% and project coverage change: -0.02% ⚠️

Comparison is base (d4ad826) 90.40% compared to head (0326d50) 90.38%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2510      +/-   ##
==========================================
- Coverage   90.40%   90.38%   -0.02%     
==========================================
  Files         106      106              
  Lines       56268    56274       +6     
  Branches    56268    56274       +6     
==========================================
- Hits        50868    50865       -3     
- Misses       5400     5409       +9     
Files Changed Coverage Δ
lightning-background-processor/src/lib.rs 82.67% <ø> (ø)
lightning/src/routing/router.rs 93.58% <93.75%> (-0.03%) ⬇️
lightning/src/routing/scoring.rs 93.76% <100.00%> (ø)
lightning/src/util/test_utils.rs 72.62% <100.00%> (ø)

... and 2 files with indirect coverage changes

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

@tnull tnull self-requested a review August 22, 2023 08:05
@TheBlueMatt
Copy link
Collaborator

Sorry, a bunch of conversation on #2509 (comment) - do you want to give exposing the full CandidateRouteHop a go?

@jbesraa
Copy link
Contributor Author

jbesraa commented Aug 27, 2023

@TheBlueMatt added some comments in the issue

@jbesraa
Copy link
Contributor Author

jbesraa commented Sep 4, 2023

Closing this as not relevant anymore - started #2551 to resolve #2509

@jbesraa jbesraa closed this Sep 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.

Pass RoutingFees to channel_penalty_msat
3 participants