mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-05 17:05:50 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user