-
Notifications
You must be signed in to change notification settings - Fork 390
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
Multiple InvoiceReceived
events for single pay_for_offer
call
#3653
Comments
Yeah, we need to check We're currently looking into dropping |
Interested in this because I was planning to open an RFC PR to propose removing the `` Due with #3593 we receive the invoice anyway through the |
Thinking about this more, we'll probably want to transition to
|
It's so I can save the bolt12 invoice and track the payment https://github.com/benthecarman/rld/blob/master/src/events.rs#L764 |
I had a simple unit test that would spin up 2 nodes and pay a bolt12 offer between them. My
InvoiceReceived
event handler was not idempotent and would throw if duplicates came in, this caused me to notice that I was receiving multiples of the same event. Found this when upgrading from 0.0.125 to 0.1.1. Can provide logs and code if more info is needed.Edit: it seems
send_payment_for_bolt12_invoice
is not idempotent either so this would effect everyone usingmanually_handle_bolt12_invoices
The text was updated successfully, but these errors were encountered: