You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When receiving a forward request lightningd selects the best channel with
the next peer based on its ability to add an HTLC and its spendable amount.
If two forwarding request arrive at the same time pointing to the same
peer we can have a race condition in which both HTLCs compete
concurrently for the same spendable amount.
There shouldn't be a race condition if both requests are supposed to be
allocated on different parallel channels, hence instead of selecting the
"best channel" we select the hinted channel unless it cannot forward,
in that case we fallback to the "best channel".
Changelog-Fixed: racy forwarding requests in the presence of parallel channels.
Signed-off-by: Lagrang3 <[email protected]>
0 commit comments