mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-13 18:10:25 +02:00
htlcswitch: add link operation for initiating quiescence
This commit is contained in:
@@ -737,6 +737,22 @@ func (l *channelLink) OnCommitOnce(direction LinkDirection, hook func()) {
|
||||
}
|
||||
}
|
||||
|
||||
// InitStfu allows us to initiate quiescence on this link. It returns a receive
|
||||
// only channel that will block until quiescence has been achieved, or
|
||||
// definitively fails.
|
||||
//
|
||||
// This operation has been added to allow channels to be quiesced via RPC. It
|
||||
// may be removed or reworked in the future as RPC initiated quiescence is a
|
||||
// holdover until we have downstream protocols that use it.
|
||||
func (l *channelLink) InitStfu() <-chan fn.Result[lntypes.ChannelParty] {
|
||||
// TODO(proofofkeags): Implement
|
||||
c := make(chan fn.Result[lntypes.ChannelParty], 1)
|
||||
|
||||
c <- fn.Errf[lntypes.ChannelParty]("InitStfu not yet implemented")
|
||||
|
||||
return c
|
||||
}
|
||||
|
||||
// isReestablished returns true if the link has successfully completed the
|
||||
// channel reestablishment dance.
|
||||
func (l *channelLink) isReestablished() bool {
|
||||
|
Reference in New Issue
Block a user