htlcswitch: accept failure reason for intercepted htlcs
This commit is contained in:
8 files changed
+456
-221
No files matched your search
@@ -297,8 +297,13 @@ type InterceptedForward interface {
|
||||
// forward with a given preimage.
|
||||
Settle(lntypes.Preimage) error
|
||||
|
||||
// Fails notifies the intention to fail an existing hold forward
|
||||
Fail() error
|
||||
// Fail notifies the intention to fail an existing hold forward with an
|
||||
// encrypted failure reason.
|
||||
Fail(reason []byte) error
|
||||
|
||||
// FailWithCode notifies the intention to fail an existing hold forward
|
||||
// with the specified failure code.
|
||||
FailWithCode(code lnwire.FailCode) error
|
||||
}
|
||||
|
||||
// htlcNotifier is an interface which represents the input side of the
|
||||
|
||||
Reference in new issue
Block a user