-
Notifications
You must be signed in to change notification settings - Fork 45
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
Bug: pending outgoing payment of open bolt11 invoice returns amount inferior to the one attempted to be sent #599
Comments
I think it is not specific to zero amount invoice. It happens because we show the paid amount given by greenlight which probably sums the htlcs that are in flight |
@roeierez yes. Users don't need to be aware of multi htlcs. |
Taking this up |
Looked into this, seems like we could reuse the approach from #589 and reuse the field WDYT? |
What about |
I think |
We've already experienced more than once that when paying an open (aka zero-amount) bolt11 invoice, if it stays pending, the
amount_msat
returned inPayment
doesn't correspond to the amount that was attempted to be paid.In one instance, the payment was for 50k sats, and the
Payment
specified ~48323 sats, and in another, it was for 45k sats, and we got ~3631 sats. Looking at the logs, for the latter, I could see that it was an MPP and one of the parts was of 3631 sats, suggesting this is related.Not sure if this could also happen for non-open invoices, but we haven't experienced it.
The text was updated successfully, but these errors were encountered: