mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-26 18:26:47 +02:00
channeldb: change to ErrTypeForDecodingErr for amp state
Was instead returning ErrTypeForEncodingErr.
This commit is contained in:
@@ -2305,7 +2305,9 @@ func ampStateDecoder(r io.Reader, val interface{}, buf *[8]byte, l uint64) error
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return tlv.NewTypeForEncodingErr(val, "channeldb.AMPInvoiceState")
|
return tlv.NewTypeForDecodingErr(
|
||||||
|
val, "channeldb.AMPInvoiceState", l, l,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserializeHtlcs reads a list of invoice htlcs from a reader and returns it
|
// deserializeHtlcs reads a list of invoice htlcs from a reader and returns it
|
||||||
|
Reference in New Issue
Block a user