htlcswitch: accept failure reason for intercepted htlcs

This commit is contained in:
Joost Jager committed 2022-02-01 17:18:59 +01:00
1 parent 60625b6c1a
commit e2b56f212f
8 files changed
+456 -221

No files matched your search

+7 -2
View File
@@ -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