Skip to content

bolt12: adding post-processing hook for onion messages #6933

@hydra-yse

Description

@hydra-yse

Current Issue:
Currently, there is an issue regarding incoming payments which require opening a channel, as the invoices generated from fetch_invoice do not take into consideration opening channel fees, meaning that once the payer attempts paying said invoice, the recipient's node will reject it with an "invalid amount" error.

Proposed Solution:
A solution to this would be to specify a post-processing hook to the fetch_invoice request which allows us to modify the outgoing payload.
Ideally, the hook should allow us to parse the generated invoice and create a new one with the updated amount, so that it can be forwarded back to the payer.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions