lnwallet/channel: add NewLocalForceCloseSummary

This commit renames ForceCloseSummary to LocalForceCloseSummary, and
adds a new method NewLocalForceCloseSummary that can be used to derive a
LocalForceCloseSummary if our commitment transaction gets confirmed
in-chain. It is meant to accompany the NewUnilateralCloseSummary method,
which is used for the same purpose in the event of a remote commitment
being seen in-chain.
This commit is contained in:
Johan T. Halseth
2018-03-19 15:19:19 +01:00
parent b7875fce4c
commit 8e77e1e6eb
3 changed files with 55 additions and 39 deletions

View File

@@ -89,7 +89,7 @@ type ChannelArbitratorConfig struct {
// is watching over. We'll use this when we decide that we need to go
// to chain. The returned summary contains all items needed to
// eventually resolve all outputs on chain.
ForceCloseChan func() (*lnwallet.ForceCloseSummary, error)
ForceCloseChan func() (*lnwallet.LocalForceCloseSummary, error)
// CloseChannel is a function closure that marks a channel under watch
// as "closing". In this phase, we will no longer accept any updates to