-
Notifications
You must be signed in to change notification settings - Fork 3
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
Implement conversion from LDK route to Barq Route Output #31
Conversation
3257340
to
914019b
Compare
|
||
unimplemented!("convert_route_to_output not implemented yet.") | ||
// TODO: Implement the logic to convert the LDK Route to RouteOutput |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not already implemented with this code?
hop.pubkey.to_string(), | ||
hop.short_channel_id.to_string(), | ||
hop.cltv_expiry_delta, | ||
hop.fee_msat, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in core lightning the amount_msat
is the fee_msat
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in fact, this is wrong, from core lightning docs amount_msat (msat): The amount expected by the node at the end of this hop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pay attention to this because we are playing with people money
914019b
to
3ae8daf
Compare
This branch is not well-tested. Current test cases only cover the direct strategy, not the probabilistic strategy. Once test cases are written for the probabilistic strategy and they pass, only then will this PR be ready to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT, let move forward with this and be able to test it
#29 (comment)