lnwallet/channel: export method MarkCommitmentBroadcasted
This commit is contained in:
parent
7cd783d7bb
commit
9ddd484524
@ -5896,6 +5896,16 @@ func (lc *LightningChannel) State() *channeldb.OpenChannel {
|
|||||||
return lc.channelState
|
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*
|
// ActiveHtlcs returns a slice of HTLC's which are currently active on *both*
|
||||||
// commitment transactions.
|
// commitment transactions.
|
||||||
func (lc *LightningChannel) ActiveHtlcs() []channeldb.HTLC {
|
func (lc *LightningChannel) ActiveHtlcs() []channeldb.HTLC {
|
||||||
|
Loading…
Reference in New Issue
Block a user