Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lnwallet: convert PendingUpdates to FullySynced
This commit improves the channel state machine by converting the objective PendingUpdates method to a subjective FullySynced method which is to be used in place of PendingUpdates. The new FullySynced method is fully encompassing and replaces any upper state required by the state machine which wraps this one. The new FullySynced method is identical to PendingUpdates aside from the fact that: it now also factors in the log message index of the remote commitment chain, and also introduces a concept of an “owed commitment”. A commitment chain owes a commitment if the height of the local commitment chain is higher than that of the remote chain.
- Loading branch information