mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-28 14:27:10 +02:00
htlcswitch: convert blinded failures for blinded payments
This commit is contained in:
@@ -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