blink icon indicating copy to clipboard operation
blink copied to clipboard

possible race condition in payment

Open nicolasburtey opened this issue 2 years ago • 0 comments

I had an issue where:

1/ the recipient was using BBW (using the tipping page) 2/ two person were trying to pay the invoice at the same time. one with BBW. one with an external wallet.

both payment initiated within less than 1s timeframe. the external wallet was probably initiated first.

the payment with the external wallet went through (success), the payment from BBW showed an error.

when looking at both wallets, both had a payment sent. it was expected for the external wallet because the payment succeed.

for the BBW wallet, the payment showed as a failure, so this was not expected.

it may be a race condition when an invoice is being paid at the same time both from outside, using lnd, and inside with an intraledger payment.

nicolasburtey avatar May 09 '22 15:05 nicolasburtey