-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add pre-flight probing capabilities #147
Conversation
996b623
to
87265a8
Compare
87265a8
to
92e2003
Compare
src/lib.rs
Outdated
})?; | ||
|
||
for path in route.paths { | ||
if path.hops.len() < 2 && path.blinded_tail.is_none() { |
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.
Should we count the number of hops in the blinded tail, too?
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.
Mh, good point. Tbh., I copied that check from https://github.com/lightningdevkit/rust-lightning/blob/7e3de7044896dbc4d2838f87870c7c58f2c7c756/lightning/src/ln/outbound_payment.rs#L907 to avoid the APIMisuseError
here. I guess this could be change there, too? (cc @valentinewallace, if you happen to touch that sometime)
92e2003
to
ec422e0
Compare
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.
LGTM. Feel free to squash.
We add the capability to send a payment probe given an invoice.
We add the capability to send a payment probe given an amount and a payee node id.
ec422e0
to
07364b8
Compare
Squashed fixups without further changes. |
Fixes #19.
Users might want to send pre-flight probes to train our scorer before sending the actutal payment.
Here, we add the capability to send payment probes either given an invoice or given an amount and the payee
node_id
.