Uh oh!
There was an error while loading. Please reload this page.
[#2189] Score Fee Params as a passed in parameter - #2237
Conversation
9ec4e0f to
d3273d3Compare
TheBlueMatt
left a comment
There was a problem hiding this comment.
Thanks for working on this!
Uh oh!
There was an error while loading. Please reload this page.
65a65ea to
b00c185CompareTheBlueMatt
commented
Apr 28, 2023
Needs rebase, though it looks like you just have some commits that made their way upstream on this branch? |
7605325 to
25924b3Compare
henghonglee
left a comment
There was a problem hiding this comment.
Hi @TheBlueMatt, Ive tried to list down the issues im facing here. tried a few different variations of this solution but ive rolled back to this one since its the simplest and imo closest to what i want to achieve
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
db1db6e to
9362cbdCompareUh oh!
There was an error while loading. Please reload this page.
henghonglee
left a comment
There was a problem hiding this comment.
@TheBlueMatt could you also take a quick look at the other comments that i made? in router.rs
Uh oh!
There was an error while loading. Please reload this page.
530cb5d to
422d73dCompareThere was a problem hiding this comment.
Hi @TheBlueMatt, it's finally ready for review :)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
422d73d to
1c8c153Comparec3e3764 to
490f401CompareYou can tell github thinks your line is too long because it cut off the last word and replace it with ... :). I think its cutoff is |
6d882ab to
567a225Compare| pub manual_node_penalties: HashMap<NodeId, u64>, | ||
| /// This penalty is applied when `htlc_maximum_msat` is equal to or larger than half of the |
There was a problem hiding this comment.
I think writing out htlc_maximum_msat ≥ 0.5 * channel_capacity might make this a bit easier to read
There was a problem hiding this comment.
I just moved this. but happy to make this change if thats necessary
There was a problem hiding this comment.
Do it in a separate commit to preserve the move-only-ness, but nothing wrong with cleaning things up when they're getting touched anyway.
There was a problem hiding this comment.
sure i can tease that out it into a seperate commit.
| /// these decay parameters affect the score of the channel penalty but are usually not changed on a per-route | ||
| /// penalty cost call. |
There was a problem hiding this comment.
Nit: These
Also, "per-route" could probably go on the next line.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
567a225 to
d1e9af7Compare8aacbe7 to
a2d0363CompareTheBlueMatt
commented
May 10, 2023
Its not critical, but if you do have to push again for some reason, your commit message still has lines (in the body, post-title) that are longer than 70 chars long. This LGTM, however, I'll let @arik-so take another look. |
04dc495 to
0614a6aComparehenghonglee
commented
May 10, 2023
arik-so
commented
May 10, 2023
Looks good, but there are failing tests, so I imagine you're probably gonna need to push again. |
This PR aims to create a "stateless" scorer. Instead of passing in fee params at construction-time, we want to parametrize the scorer with an associated "parameter" type, which is then passed to the router function itself, and allows passing different parameters per route-finding call.
0614a6a to
ecd7992Compareecd7992 to
86af670Comparehenghonglee
commented
May 11, 2023
@arik-so checks seems to be passing now |
| #[cfg(test)] | ||
| impl ProbabilisticScoringDecayParameters { | ||
| fn zero_penalty() -> Self { |
There was a problem hiding this comment.
Heh, we don't really need a duplicate of default that does the same thing :)

Uh oh!
There was an error while loading. Please reload this page.