htlcswitch: add link operation for initiating quiescence
This commit is contained in:
4 files changed
+45
No files matched your search
@@ -170,6 +170,18 @@ type ChannelUpdateHandler interface {
|
||||
// will only ever be called once. If no CommitSig is owed in the
|
||||
// argument's LinkDirection, then we will call this hook immediately.
|
||||
OnCommitOnce(LinkDirection, 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. The return value is the
|
||||
// ChannelParty who holds the role of initiator or Err if the operation
|
||||
// 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.
|
||||
InitStfu() <-chan fn.Result[lntypes.ChannelParty]
|
||||
}
|
||||
|
||||
// CommitHookID is a value that is used to uniquely identify hooks in the
|
||||
|
||||
Reference in new issue
Block a user