diff --git a/compress/decompress.go b/compress/decompress.go index 3d0b2bf11..0770b3961 100644 --- a/compress/decompress.go +++ b/compress/decompress.go @@ -187,7 +187,7 @@ func NewDecompressor(compressedFilePath string) (*Decompressor, error) { for i < dictSize { d, ns := binary.Uvarint(data[i:]) - if d > 2048 { + if d > 64 { // mainnet has maxDepth 31 return nil, fmt.Errorf("dictionary is invalid: patternMaxDepth=%d", d) } depths = append(depths, d)