lnwallet/channel: export method MarkCommitmentBroadcasted

This commit is contained in:
Johan T. Halseth 2018-05-18 15:19:40 +02:00
parent 7cd783d7bb
commit 9ddd484524
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -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 {