htlcswitch: accept failure reason for intercepted htlcs

This commit is contained in:
Joost Jager
2022-01-18 15:17:05 +01:00
parent 60625b6c1a
commit e2b56f212f
8 changed files with 456 additions and 221 deletions

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