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
But I'm not 100% if we'd actually like to push this change, as it would only be temporary:
Sadly, the acquiring and retaking of the channel_state lock will have to be reintroduced with #1507 unless we also move out the pending_msg_events lock already from the channel_state as well.
The pending_msg_events lock is acquired in claim_funds_from_hop, and as we aim to move the lock order of the channel_state lock with #1507, we can only temporarily lock the channel_state in claims_funds to not violate the lock orders.
I'd suggest that instead of pushing this fix, let's move claimable_htlcs to a standalone lock instead? claimable_htlcs has no consistency guarantees, so it should be pretty simple.
Perhaps this also show's that we'd like to move the pending_msg_events lock either before or with #1507. Am I correct to assume that we'd like to have it per peer in the per_peer_state lock?
Maybe push the messages into the per-peer map as well? That would make sense, I think, without having dug into everything - the messages have to be sent in the order they're created (by the channel), so it makes sense for them to be under the same lock (cause the locks has to be held at the same time either way).
See #1656 (comment)
The text was updated successfully, but these errors were encountered: