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

BOLT12 hold invoices #12

Merged
merged 9 commits into from
Mar 24, 2025
Merged

BOLT12 hold invoices #12

merged 9 commits into from
Mar 24, 2025

Conversation

michael1011
Copy link
Member

No description provided.

@michael1011 michael1011 requested a review from maybeast January 22, 2025 23:58

Verified

This commit was signed with the committer’s verified signature.
michael1011 michael1011

Verified

This commit was signed with the committer’s verified signature.
michael1011 michael1011

Verified

This commit was signed with the committer’s verified signature.
michael1011 michael1011

Verified

This commit was signed with the committer’s verified signature.
michael1011 michael1011

Verified

This commit was signed with the committer’s verified signature.
michael1011 michael1011

Verified

This commit was signed with the committer’s verified signature.
michael1011 michael1011
@michael1011 michael1011 marked this pull request as ready for review March 22, 2025 21:57

Verified

This commit was signed with the committer’s verified signature.
michael1011 michael1011

Verified

This commit was signed with the committer’s verified signature.
michael1011 michael1011
plugin.state().settler.new_invoice(
params.invoice,
invoice.payment_hash().to_vec(),
invoice.amount_milli_satoshis().unwrap_or(0),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when are we expecting the .unwrap_or(0) case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Invoices without an amount

Verified

This commit was signed with the committer’s verified signature.
michael1011 michael1011
@michael1011 michael1011 requested a review from maybeast March 24, 2025 13:02
@michael1011 michael1011 merged commit 1e9674f into main Mar 24, 2025
4 checks passed
@michael1011 michael1011 deleted the bolt12 branch March 24, 2025 19:19
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.

None yet

2 participants