diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 45f26bc4..8ccb0ded 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -5896,6 +5896,16 @@ func (lc *LightningChannel) State() *channeldb.OpenChannel { return lc.channelState } +// MarkCommitmentBroadcasted marks the channel as a commitment transaction has +// been broadcast, either our own or the remote, and we should watch the chain +// for it to confirm before taking any further action. +func (lc *LightningChannel) MarkCommitmentBroadcasted() error { + lc.Lock() + defer lc.Unlock() + + return lc.channelState.MarkCommitmentBroadcasted() +} + // ActiveHtlcs returns a slice of HTLC's which are currently active on *both* // commitment transactions. func (lc *LightningChannel) ActiveHtlcs() []channeldb.HTLC {