mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-13 05:11:21 +00:00
data is corrupted, but this requires manual intervention
i.e., can't be skipped and we should only return DataCorruptionError if we can skip a msg safely
This commit is contained in:
@ -282,7 +282,7 @@ func (dec *WALDecoder) Decode() (*TimedWALMessage, error) {
|
||||
length := binary.BigEndian.Uint32(b)
|
||||
|
||||
if length > maxMsgSizeBytes {
|
||||
return nil, DataCorruptionError{fmt.Errorf("length %d exceeded maximum possible value of %d bytes", length, maxMsgSizeBytes)}
|
||||
return nil, fmt.Errorf("length %d exceeded maximum possible value of %d bytes", length, maxMsgSizeBytes)
|
||||
}
|
||||
|
||||
data := make([]byte, length)
|
||||
|
Reference in New Issue
Block a user