mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
htlcswitch: accept failure reason for intercepted htlcs
This commit is contained in:
@@ -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