forked from lightningnetwork/lnd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
peer: restore the htlcManager's logCommitTimer to a persistent ticker
This commit patches a whole in our optimistic channel synchronization logic by making the logCommitTimer a persistent ticker rather than one that is activated after receiving a commitment, and disabled once we send a new commitment ourself. In the setting of batched full-duplex channel updates, the prior approach could at times result in a benign state desync caused by one side being one commitment ahead of the other because one of the nodes failed to, or was unable to provide the other with a state update during the workflow.
- Loading branch information
Showing
2 changed files
with
12 additions
and
36 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