Merge pull request #6358 from Crypt-iQ/amp_state_decoder

channeldb: change to ErrTypeForDecodingErr for amp state
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2022-03-23 16:10:38 -07:00
commit 3fce8e7501
1 file changed
+3 -1
+3 -1
View File
@@ -2305,7 +2305,9 @@ func ampStateDecoder(r io.Reader, val interface{}, buf *[8]byte, l uint64) error
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