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

Gateway has built-in LDK lightning node (and it generates invoices rather than the client) #4338

Closed
wants to merge 13 commits into from

Conversation

tvolk131
Copy link
Member

VERY broken, do not merge!

@tvolk131 tvolk131 changed the title Gateway generates invoice Gateway has built-in LDK lightning node and generates invoices Feb 15, 2024
@tvolk131 tvolk131 changed the title Gateway has built-in LDK lightning node and generates invoices Gateway has built-in LDK lightning node (and it generates invoices rather than the client) Feb 15, 2024
@tvolk131 tvolk131 force-pushed the gateway_generates_invoice branch from 83d5561 to fc29f80 Compare February 17, 2024 05:39
invoice.expiry_time().as_secs()
);
}

Copy link
Contributor

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

Copy link
Member Author

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?;
Copy link
Contributor

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" }
Copy link
Contributor

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

Copy link
Member Author

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.

@tvolk131 tvolk131 force-pushed the gateway_generates_invoice branch from fc29f80 to e139d44 Compare February 27, 2024 02:30
@tvolk131 tvolk131 force-pushed the gateway_generates_invoice branch from a4a2c39 to 05068d4 Compare March 1, 2024 14:39
@tvolk131
Copy link
Member Author

Closing since we merged #5554 and #5728 instead

@tvolk131 tvolk131 closed this Aug 12, 2024
@tvolk131 tvolk131 deleted the gateway_generates_invoice branch August 12, 2024 21:05
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.

2 participants