Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle out-of-order htlc-timeout txs
It may happen that a commit tx and some htlc-timeout txs end up in the same block. In that case, there is no guarantee on the order we'll receive the confirmation events. If any tx in a local/remoteCommitPublished is confirmed, that implicitly means that the commit tx is confirmed (because it spends from it). So we can consider the closing type known and forward the failure upstream.
- Loading branch information
Showing
3 changed files
with
30 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters