diff --git a/common/go.mod b/common/go.mod index 016963236f..1bfca03c1b 100644 --- a/common/go.mod +++ b/common/go.mod @@ -6,7 +6,7 @@ require ( github.com/Masterminds/semver/v3 v3.2.1 github.com/bits-and-blooms/bitset v1.12.0 github.com/cloudflare/cfssl v0.0.0-20180223231731-4e2dcbde5004 - github.com/colinlyguo/zstd v0.0.0-20240422153245-68e20236939c + github.com/colinlyguo/zstd v0.0.0-20240422161758-2c9809420237 github.com/docker/docker v25.0.5+incompatible github.com/gin-contrib/pprof v1.4.0 github.com/gin-gonic/gin v1.9.1 diff --git a/common/go.sum b/common/go.sum index b3deb981e0..8291777891 100644 --- a/common/go.sum +++ b/common/go.sum @@ -117,8 +117,8 @@ github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4 h1:/inchEIKaYC1Akx+H+g github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb h1:EDmT6Q9Zs+SbUoc7Ik9EfrFqcylYqgPZ9ANSbTAntnE= github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb/go.mod h1:ZjrT6AXHbDs86ZSdt/osfBi5qfexBrKUdONk989Wnk4= -github.com/colinlyguo/zstd v0.0.0-20240422153245-68e20236939c h1:k/55pwq7Co77RfFHQpdI7cOghzS9rr1f4WWmYOeuDwU= -github.com/colinlyguo/zstd v0.0.0-20240422153245-68e20236939c/go.mod h1:ok1MRsMAuuMr6NJAbRQDLSWWK2CvXgc7WZnOFTAkhhU= +github.com/colinlyguo/zstd v0.0.0-20240422161758-2c9809420237 h1:CrzIvxsH1WIrWC48fkbDcIGTnz3zrCEIVNM7IjZWeTk= +github.com/colinlyguo/zstd v0.0.0-20240422161758-2c9809420237/go.mod h1:ok1MRsMAuuMr6NJAbRQDLSWWK2CvXgc7WZnOFTAkhhU= github.com/compose-spec/compose-go/v2 v2.0.0-rc.2 h1:eJ01FpliL/02KvsaPyH1bSLbM1S70yWQUojHVRbyvy4= github.com/compose-spec/compose-go/v2 v2.0.0-rc.2/go.mod h1:IVsvFyGVhw4FASzUtlWNVaAOhYmakXAFY9IlZ7LAuD8= github.com/consensys/bavard v0.1.13 h1:oLhMLOFGTLdlda/kma4VOJazblc7IM5y5QPd2A/YjhQ= diff --git a/common/types/encoding/codecv1/codecv1.go b/common/types/encoding/codecv1/codecv1.go index 9b74e00f5f..982a0bebc6 100644 --- a/common/types/encoding/codecv1/codecv1.go +++ b/common/types/encoding/codecv1/codecv1.go @@ -335,7 +335,7 @@ func constructBlobPayload(chunks []*encoding.Chunk, withCompression bool) (*kzg4 blobBytes := batchBytes if withCompression { var err error - blobBytes, err = zstd.Compress(nil, batchBytes) + blobBytes, err = zstd.CompressScrollBatchBytes(batchBytes) if err != nil { return nil, common.Hash{}, nil, err }