htlcswitch: convert blinded failures for blinded payments
This commit is contained in:
2 files changed
+117
-7
No files matched your search
@@ -39,6 +39,12 @@ const (
|
||||
EncrypterTypeRelaying = 4
|
||||
)
|
||||
|
||||
// IsBlinded returns a boolean indicating whether the error encrypter belongs
|
||||
// to a blinded route.
|
||||
func (e EncrypterType) IsBlinded() bool {
|
||||
return e == EncrypterTypeIntroduction || e == EncrypterTypeRelaying
|
||||
}
|
||||
|
||||
// ErrorEncrypterExtracter defines a function signature that extracts an
|
||||
// ErrorEncrypter from an sphinx OnionPacket.
|
||||
type ErrorEncrypterExtracter func(*btcec.PublicKey) (ErrorEncrypter,
|
||||
|
||||
Reference in new issue
Block a user