Files
purple-electrumwallet/electrum
f321x 196cc33c1c ln: fix race when doing concurrent ln payments
There is a race when initiating multiple lightning payments concurrently
(e.g. when doing a reverse swap with prepayment + swap payment).
suggest_splits might overallocate
split amounts for a channel as the splitting of both invoice amounts runs
concurrently and before acutal htlcs that reduce the channels balance
have been added to the channel yet. This results in a "not
enough balance" PaymentFailure once we try to send the htlcs and the
other payment attempt already reduced the available balance of the
channel.

This fix takes a lock from splitting the amount until the htlcs are
put on the channel, so suggest_splits always acts on the correct channel
balance.
2025-11-27 16:43:40 +01:00
..
2025-11-27 11:31:10 +01:00
2025-08-23 18:59:14 +00:00
2025-11-11 16:51:31 +00:00
2025-08-18 15:38:25 +00:00
2025-11-19 17:38:58 +01:00
2025-11-25 13:14:57 +01:00
2025-11-03 14:07:58 +01:00
2025-10-31 14:50:25 +01:00
2025-09-13 23:12:44 -04:00