contractcourt: add new checkLocalChainActions method use in main state step

In this commit, we add a new `checkLocalChainActions` method. This
method differs from the existing `checkChainActions` method in that it's
only concerned with actions we should take on chain for our local state
based on the local _and_ remote state. This change ensures that we'll
now to go to chain order to cancel an HTLC that was on the remote
party's commitment transaction, but not our own.
This commit is contained in:
Olaoluwa Osuntokun committed 2019-05-27 15:26:36 -07:00
1 parent 5f0fad85be
commit fc617cd041
2 files changed
+134 -13

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ type RemoteUnilateralCloseInfo struct {
*lnwallet.UnilateralCloseSummary
// CommitSet is the set of known valid commitments at the time the
// remote party's commitemnt hit the chain.
// remote party's commitment hit the chain.
CommitSet CommitSet
}