mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-21 19:20:38 +00:00
Downgrade Level DB to Stable Version (#13671)
* downgrade level db * fix current issues * update geth * Fix zstd build. The patch is now longer needed now that https://github.com/bazelbuild/rules_go/issues/3411 is fixed. * Revert "update geth" This reverts commit 2a7c51a952676a36ed62f837e91bebce2413e731. * change to hex --------- Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
This commit is contained in:
parent
6d3c6a6331
commit
b61d17731e
@ -163,7 +163,7 @@ func Test_getBlkParentHashAndTD(t *testing.T) {
|
||||
parentHash, totalDifficulty, err := service.getBlkParentHashAndTD(ctx, h[:])
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, p, bytesutil.ToBytes32(parentHash))
|
||||
require.Equal(t, td, totalDifficulty.String())
|
||||
require.Equal(t, td, totalDifficulty.Hex())
|
||||
|
||||
_, _, err = service.getBlkParentHashAndTD(ctx, []byte{'c'})
|
||||
require.ErrorContains(t, "could not get pow block: block not found", err)
|
||||
|
59
go.mod
59
go.mod
@ -6,8 +6,8 @@ toolchain go1.21.5
|
||||
|
||||
require (
|
||||
contrib.go.opencensus.io/exporter/jaeger v0.2.1
|
||||
github.com/MariusVanDerWijden/FuzzyVM v0.0.0-20221202121132-bd37e8fb1d0d
|
||||
github.com/MariusVanDerWijden/tx-fuzz v1.0.2
|
||||
github.com/MariusVanDerWijden/FuzzyVM v0.0.0-20240209103030-ec53fa766bf8
|
||||
github.com/MariusVanDerWijden/tx-fuzz v1.3.3-0.20240227085032-f70dd7c85c97
|
||||
github.com/aristanetworks/goarista v0.0.0-20200805130819-fd197cf57d96
|
||||
github.com/bazelbuild/rules_go v0.23.2
|
||||
github.com/btcsuite/btcd/btcec/v2 v2.3.2
|
||||
@ -17,7 +17,7 @@ require (
|
||||
github.com/dgraph-io/ristretto v0.0.4-0.20210318174700-74754f61e018
|
||||
github.com/dustin/go-humanize v1.0.0
|
||||
github.com/emicklei/dot v0.11.0
|
||||
github.com/ethereum/go-ethereum v1.13.5-0.20231027145059-2d7dba024d76
|
||||
github.com/ethereum/go-ethereum v1.13.5
|
||||
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5
|
||||
github.com/fsnotify/fsnotify v1.6.0
|
||||
github.com/ghodss/yaml v1.0.0
|
||||
@ -36,7 +36,7 @@ require (
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.0.1
|
||||
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d
|
||||
github.com/herumi/bls-eth-go-binary v0.0.0-20210917013441-d37c07cfda4e
|
||||
github.com/holiman/uint256 v1.2.3
|
||||
github.com/holiman/uint256 v1.2.4
|
||||
github.com/ianlancetaylor/cgosymbolizer v0.0.0-20200424224625-be1b05b0b279
|
||||
github.com/ipfs/go-log/v2 v2.5.1
|
||||
github.com/joonix/log v0.0.0-20200409080653-9c1d2ceb5f1d
|
||||
@ -60,8 +60,8 @@ require (
|
||||
github.com/paulbellamy/ratecounter v0.2.0
|
||||
github.com/pborman/uuid v1.2.1
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/prometheus/client_golang v1.14.0
|
||||
github.com/prometheus/client_model v0.4.0
|
||||
github.com/prometheus/client_golang v1.17.0
|
||||
github.com/prometheus/client_model v0.5.0
|
||||
github.com/prometheus/prom2json v1.3.0
|
||||
github.com/prysmaticlabs/fastssz v0.0.0-20221107182844-78142813af44
|
||||
github.com/prysmaticlabs/go-bitfield v0.0.0-20210809151128-385d8c5e3fb7
|
||||
@ -77,7 +77,7 @@ require (
|
||||
github.com/thomaso-mirodin/intmath v0.0.0-20160323211736-5dc6d854e46e
|
||||
github.com/trailofbits/go-mutexasserts v0.0.0-20230328101604-8cdbc5f3d279
|
||||
github.com/tyler-smith/go-bip39 v1.1.0
|
||||
github.com/urfave/cli/v2 v2.25.7
|
||||
github.com/urfave/cli/v2 v2.26.0
|
||||
github.com/uudashr/gocognit v1.0.5
|
||||
github.com/wealdtech/go-bytesutil v1.1.1
|
||||
github.com/wealdtech/go-eth2-util v1.6.3
|
||||
@ -93,7 +93,7 @@ require (
|
||||
golang.org/x/tools v0.16.0
|
||||
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1
|
||||
google.golang.org/grpc v1.56.3
|
||||
google.golang.org/protobuf v1.30.0
|
||||
google.golang.org/protobuf v1.31.0
|
||||
gopkg.in/d4l3k/messagediff.v1 v1.2.1
|
||||
gopkg.in/yaml.v2 v2.4.0
|
||||
gopkg.in/yaml.v3 v3.0.1
|
||||
@ -104,28 +104,28 @@ require (
|
||||
|
||||
require (
|
||||
github.com/BurntSushi/toml v1.3.2 // indirect
|
||||
github.com/DataDog/zstd v1.5.2 // indirect
|
||||
github.com/DataDog/zstd v1.5.5 // indirect
|
||||
github.com/Microsoft/go-winio v0.6.1 // indirect
|
||||
github.com/VictoriaMetrics/fastcache v1.12.1 // indirect
|
||||
github.com/VictoriaMetrics/fastcache v1.12.2 // indirect
|
||||
github.com/benbjohnson/clock v1.3.5 // indirect
|
||||
github.com/beorn7/perks v1.0.1 // indirect
|
||||
github.com/bits-and-blooms/bitset v1.7.0 // indirect
|
||||
github.com/bits-and-blooms/bitset v1.11.0 // indirect
|
||||
github.com/cespare/cp v1.1.1 // indirect
|
||||
github.com/cespare/xxhash v1.1.0 // indirect
|
||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
||||
github.com/chzyer/readline v1.5.1 // indirect
|
||||
github.com/cockroachdb/errors v1.9.1 // indirect
|
||||
github.com/cockroachdb/errors v1.11.1 // indirect
|
||||
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
|
||||
github.com/cockroachdb/pebble v0.0.0-20230928194634-aa077af62593 // indirect
|
||||
github.com/cockroachdb/redact v1.1.3 // indirect
|
||||
github.com/cockroachdb/redact v1.1.5 // indirect
|
||||
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
|
||||
github.com/consensys/bavard v0.1.13 // indirect
|
||||
github.com/containerd/cgroups v1.1.0 // indirect
|
||||
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect
|
||||
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
|
||||
github.com/deckarep/golang-set/v2 v2.5.0 // indirect
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
|
||||
github.com/deepmap/oapi-codegen v1.8.2 // indirect
|
||||
github.com/dlclark/regexp2 v1.7.0 // indirect
|
||||
@ -136,7 +136,7 @@ require (
|
||||
github.com/ferranbt/fastssz v0.0.0-20210120143747-11b9eff30ea9 // indirect
|
||||
github.com/flynn/noise v1.0.0 // indirect
|
||||
github.com/francoispqt/gojay v1.2.13 // indirect
|
||||
github.com/getsentry/sentry-go v0.18.0 // indirect
|
||||
github.com/getsentry/sentry-go v0.25.0 // indirect
|
||||
github.com/go-playground/locales v0.14.1 // indirect
|
||||
github.com/go-playground/universal-translator v0.18.1 // indirect
|
||||
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
|
||||
@ -148,13 +148,13 @@ require (
|
||||
github.com/google/go-cmp v0.5.9 // indirect
|
||||
github.com/google/gopacket v1.1.19 // indirect
|
||||
github.com/google/pprof v0.0.0-20231023181126-ff6d637d2a7b // indirect
|
||||
github.com/gorilla/websocket v1.5.0 // indirect
|
||||
github.com/gorilla/websocket v1.5.1 // indirect
|
||||
github.com/graph-gophers/graphql-go v1.3.0 // indirect
|
||||
github.com/hashicorp/go-bexpr v0.1.10 // indirect
|
||||
github.com/hashicorp/golang-lru/v2 v2.0.5 // indirect
|
||||
github.com/holiman/billy v0.0.0-20230718173358-1c7e68d277a7 // indirect
|
||||
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
|
||||
github.com/holiman/goevmlab v0.0.0-20230917164918-f3777d0b880b // indirect
|
||||
github.com/holiman/goevmlab v0.0.0-20231201084119-c73b3c97929c // indirect
|
||||
github.com/huin/goupnp v1.3.0 // indirect
|
||||
github.com/influxdata/influxdb-client-go/v2 v2.4.0 // indirect
|
||||
github.com/influxdata/influxdb1-client v0.0.0-20220302092344-a9ab5670611c // indirect
|
||||
@ -164,7 +164,7 @@ require (
|
||||
github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect
|
||||
github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a // indirect
|
||||
github.com/karalabe/usb v0.0.3-0.20230711191512-61db3e06439c // indirect
|
||||
github.com/klauspost/compress v1.17.2 // indirect
|
||||
github.com/klauspost/compress v1.17.4 // indirect
|
||||
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
|
||||
github.com/koron/go-ssdp v0.0.4 // indirect
|
||||
github.com/kr/text v0.2.0 // indirect
|
||||
@ -181,8 +181,9 @@ require (
|
||||
github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect
|
||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.14 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.15 // indirect
|
||||
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
|
||||
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
|
||||
github.com/miekg/dns v1.1.56 // indirect
|
||||
github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b // indirect
|
||||
github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect
|
||||
@ -209,33 +210,33 @@ require (
|
||||
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
||||
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/prometheus/common v0.42.0 // indirect
|
||||
github.com/prometheus/procfs v0.9.0 // indirect
|
||||
github.com/prometheus/common v0.45.0 // indirect
|
||||
github.com/prometheus/procfs v0.12.0 // indirect
|
||||
github.com/quic-go/qpack v0.4.0 // indirect
|
||||
github.com/quic-go/qtls-go1-20 v0.3.4 // indirect
|
||||
github.com/quic-go/quic-go v0.39.4 // indirect
|
||||
github.com/quic-go/webtransport-go v0.6.0 // indirect
|
||||
github.com/raulk/go-watchdog v1.3.0 // indirect
|
||||
github.com/rivo/uniseg v0.4.4 // indirect
|
||||
github.com/rogpeppe/go-internal v1.9.0 // indirect
|
||||
github.com/rogpeppe/go-internal v1.11.0 // indirect
|
||||
github.com/russross/blackfriday/v2 v2.1.0 // indirect
|
||||
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
|
||||
github.com/spaolacci/murmur3 v1.1.0 // indirect
|
||||
github.com/stretchr/objx v0.5.0 // indirect
|
||||
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
|
||||
github.com/tklauser/go-sysconf v0.3.12 // indirect
|
||||
github.com/tklauser/numcpus v0.6.1 // indirect
|
||||
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
|
||||
github.com/tklauser/go-sysconf v0.3.13 // indirect
|
||||
github.com/tklauser/numcpus v0.7.0 // indirect
|
||||
github.com/uber/jaeger-client-go v2.25.0+incompatible // indirect
|
||||
github.com/wealdtech/go-eth2-types/v2 v2.5.2 // indirect
|
||||
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
|
||||
github.com/yusufpapurcu/wmi v1.2.2 // indirect
|
||||
github.com/yusufpapurcu/wmi v1.2.3 // indirect
|
||||
go.uber.org/dig v1.17.1 // indirect
|
||||
go.uber.org/fx v1.20.1 // indirect
|
||||
go.uber.org/multierr v1.11.0 // indirect
|
||||
go.uber.org/zap v1.26.0 // indirect
|
||||
golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678 // indirect
|
||||
golang.org/x/net v0.19.0 // indirect
|
||||
golang.org/x/oauth2 v0.7.0 // indirect
|
||||
golang.org/x/oauth2 v0.12.0 // indirect
|
||||
golang.org/x/term v0.15.0 // indirect
|
||||
golang.org/x/text v0.14.0 // indirect
|
||||
golang.org/x/time v0.3.0 // indirect
|
||||
@ -253,7 +254,7 @@ require (
|
||||
github.com/fatih/color v1.13.0 // indirect
|
||||
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect
|
||||
github.com/go-logr/logr v1.2.4 // indirect
|
||||
github.com/go-ole/go-ole v1.2.6 // indirect
|
||||
github.com/go-ole/go-ole v1.3.0 // indirect
|
||||
github.com/go-playground/validator/v10 v10.13.0
|
||||
github.com/peterh/liner v1.2.0 // indirect
|
||||
github.com/prysmaticlabs/gohashtree v0.0.4-beta
|
||||
|
147
third_party/com_github_datadog_zstd.patch
vendored
147
third_party/com_github_datadog_zstd.patch
vendored
@ -1,147 +0,0 @@
|
||||
diff --git a/BUILD.bazel b/BUILD.bazel
|
||||
new file mode 100644
|
||||
index 0000000..f15d38e
|
||||
--- /dev/null
|
||||
+++ b/BUILD.bazel
|
||||
@@ -0,0 +1,131 @@
|
||||
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
+load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
+
|
||||
+cc_library(
|
||||
+ name = "zstd_cc",
|
||||
+ srcs = [
|
||||
+ "bitstream.h",
|
||||
+ "clevels.h",
|
||||
+ "compiler.h",
|
||||
+ "cover.c",
|
||||
+ "cover.h",
|
||||
+ "cpu.h",
|
||||
+ "debug.c",
|
||||
+ "debug.h",
|
||||
+ "divsufsort.c",
|
||||
+ "divsufsort.h",
|
||||
+ "entropy_common.c",
|
||||
+ "error_private.c",
|
||||
+ "error_private.h",
|
||||
+ "fastcover.c",
|
||||
+ "fse.h",
|
||||
+ "fse_compress.c",
|
||||
+ "fse_decompress.c",
|
||||
+ "hist.c",
|
||||
+ "hist.h",
|
||||
+ "huf.h",
|
||||
+ "huf_compress.c",
|
||||
+ "huf_decompress.c",
|
||||
+ "huf_decompress_amd64.S",
|
||||
+ "mem.h",
|
||||
+ "pool.c",
|
||||
+ "pool.h",
|
||||
+ "portability_macros.h",
|
||||
+ "threading.c",
|
||||
+ "threading.h",
|
||||
+ "xxhash.c",
|
||||
+ "xxhash.h",
|
||||
+ "zbuff.h",
|
||||
+ "zbuff_common.c",
|
||||
+ "zbuff_compress.c",
|
||||
+ "zbuff_decompress.c",
|
||||
+ "zdict.c",
|
||||
+ "zdict.h",
|
||||
+ "zstd.h",
|
||||
+ "zstd_common.c",
|
||||
+ "zstd_compress.c",
|
||||
+ "zstd_compress_internal.h",
|
||||
+ "zstd_compress_literals.c",
|
||||
+ "zstd_compress_literals.h",
|
||||
+ "zstd_compress_sequences.c",
|
||||
+ "zstd_compress_sequences.h",
|
||||
+ "zstd_compress_superblock.c",
|
||||
+ "zstd_compress_superblock.h",
|
||||
+ "zstd_cwksp.h",
|
||||
+ "zstd_ddict.c",
|
||||
+ "zstd_ddict.h",
|
||||
+ "zstd_decompress.c",
|
||||
+ "zstd_decompress_block.c",
|
||||
+ "zstd_decompress_block.h",
|
||||
+ "zstd_decompress_internal.h",
|
||||
+ "zstd_deps.h",
|
||||
+ "zstd_double_fast.c",
|
||||
+ "zstd_double_fast.h",
|
||||
+ "zstd_errors.h",
|
||||
+ "zstd_fast.c",
|
||||
+ "zstd_fast.h",
|
||||
+ "zstd_internal.h",
|
||||
+ "zstd_lazy.c",
|
||||
+ "zstd_lazy.h",
|
||||
+ "zstd_ldm.c",
|
||||
+ "zstd_ldm.h",
|
||||
+ "zstd_ldm_geartab.h",
|
||||
+ "zstd_legacy.h",
|
||||
+ "zstd_opt.c",
|
||||
+ "zstd_opt.h",
|
||||
+ "zstd_trace.h",
|
||||
+ "zstd_v01.c",
|
||||
+ "zstd_v01.h",
|
||||
+ "zstd_v02.c",
|
||||
+ "zstd_v02.h",
|
||||
+ "zstd_v03.c",
|
||||
+ "zstd_v03.h",
|
||||
+ "zstd_v04.c",
|
||||
+ "zstd_v04.h",
|
||||
+ "zstd_v05.c",
|
||||
+ "zstd_v05.h",
|
||||
+ "zstd_v06.c",
|
||||
+ "zstd_v06.h",
|
||||
+ "zstd_v07.c",
|
||||
+ "zstd_v07.h",
|
||||
+ "zstdmt_compress.c",
|
||||
+ "zstdmt_compress.h",
|
||||
+ ],
|
||||
+ copts = ["-DZSTD_LEGACY_SUPPORT=4"],
|
||||
+
|
||||
+)
|
||||
+go_library(
|
||||
+ name = "zstd",
|
||||
+ srcs = [
|
||||
+ "errors.go",
|
||||
+ "zstd.go",
|
||||
+ "zstd_bulk.go",
|
||||
+ "zstd_ctx.go",
|
||||
+ "zstd_stream.go",
|
||||
+ "zstd.h",
|
||||
+ ],
|
||||
+ cgo = True,
|
||||
+ cdeps = [":zstd_cc"],
|
||||
+ copts = ["-DZSTD_LEGACY_SUPPORT=4"],
|
||||
+ importpath = "github.com/DataDog/zstd",
|
||||
+ visibility = ["//visibility:public"],
|
||||
+)
|
||||
+
|
||||
+alias(
|
||||
+ name = "go_default_library",
|
||||
+ actual = ":zstd",
|
||||
+ visibility = ["//visibility:public"],
|
||||
+)
|
||||
+
|
||||
+go_test(
|
||||
+ name = "zstd_test",
|
||||
+ srcs = [
|
||||
+ "errors_test.go",
|
||||
+ "helpers_test.go",
|
||||
+ "zstd_bullk_test.go",
|
||||
+ "zstd_ctx_test.go",
|
||||
+ "zstd_stream_test.go",
|
||||
+ "zstd_test.go",
|
||||
+ ],
|
||||
+ embed = [":zstd"],
|
||||
+)
|
||||
diff --git a/WORKSPACE b/WORKSPACE
|
||||
new file mode 100644
|
||||
index 0000000..dea5b27
|
||||
--- /dev/null
|
||||
+++ b/WORKSPACE
|
||||
@@ -0,0 +1,2 @@
|
||||
+# DO NOT EDIT: automatically generated WORKSPACE file for go_repository rule
|
||||
+workspace(name = "com_github_datadog_zstd")
|
||||
--
|
||||
2.34.1
|
Loading…
Reference in New Issue
Block a user