-
Notifications
You must be signed in to change notification settings - Fork 225
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
Gateway has built-in LDK lightning node (and it generates invoices rather than the client) #4338
Conversation
83d5561
to
fc29f80
Compare
invoice.expiry_time().as_secs() | ||
); | ||
} | ||
|
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.
Need to verify same payment hash
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.
Whoops! Good catch, thanks!
); | ||
} | ||
|
||
let invoice: Bolt11Invoice = response.json().await?; |
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.
probably makes sense to have this as a json object so it can be more extensible in the future
@@ -37,6 +37,7 @@ ln-gateway = { version = "0.3.0-alpha", package = "fedimint-ln-gateway", path = | |||
ldk-node = { package = "fedimint-ldk-node", version = "0.1.0" } | |||
futures = "0.3" | |||
lightning-invoice = "0.26.0" | |||
lightning-invoice29 = { package = "lightning-invoice", version = "0.29.0" } |
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.
ldk-node re-exports lightning invoice. Can probably just use that
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.
Requires #4354 since we're currently using fedimint-ldk-node
v0.1.0 which re-exports lightning-invoice
v0.23.0 instead of v0.29.0. Leaving this open until that PR is merged.
fc29f80
to
e139d44
Compare
a4a2c39
to
05068d4
Compare
VERY broken, do not merge!