upgrade v6 to v7 (#15989)

* upgrade v6 to v7

* changelog

* update-go-ssz
This commit is contained in:
Bastin
2025-11-06 17:16:23 +01:00
committed by GitHub
parent d6005026e0
commit 92bd211e4d
3030 changed files with 15365 additions and 15362 deletions

View File

@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = ["service_registry.go"],
importpath = "github.com/OffchainLabs/prysm/v6/runtime",
importpath = "github.com/OffchainLabs/prysm/v7/runtime",
visibility = ["//visibility:public"],
deps = ["@com_github_sirupsen_logrus//:go_default_library"],
)

View File

@@ -15,7 +15,7 @@ go_library(
":use_cgosymbolizer": ["cgo_symbolizer.go"],
"//conditions:default": [],
}),
importpath = "github.com/OffchainLabs/prysm/v6/runtime/debug",
importpath = "github.com/OffchainLabs/prysm/v7/runtime/debug",
visibility = ["//visibility:public"],
deps = [
"@com_github_prometheus_client_golang//prometheus:go_default_library",

View File

@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = ["fdlimits.go"],
importpath = "github.com/OffchainLabs/prysm/v6/runtime/fdlimits",
importpath = "github.com/OffchainLabs/prysm/v7/runtime/fdlimits",
visibility = ["//visibility:public"],
deps = [
"@com_github_ethereum_go_ethereum//common/fdlimit:go_default_library",

View File

@@ -3,8 +3,8 @@ package fdlimits_test
import (
"testing"
"github.com/OffchainLabs/prysm/v6/runtime/fdlimits"
"github.com/OffchainLabs/prysm/v6/testing/assert"
"github.com/OffchainLabs/prysm/v7/runtime/fdlimits"
"github.com/OffchainLabs/prysm/v7/testing/assert"
gethLimit "github.com/ethereum/go-ethereum/common/fdlimit"
)

View File

@@ -10,7 +10,7 @@ go_library(
"premine-state.go",
"premined_genesis_state.go",
],
importpath = "github.com/OffchainLabs/prysm/v6/runtime/interop",
importpath = "github.com/OffchainLabs/prysm/v7/runtime/interop",
visibility = ["//visibility:public"],
deps = [
"//async:go_default_library",

View File

@@ -6,17 +6,17 @@ import (
"context"
"sync"
"github.com/OffchainLabs/prysm/v6/async"
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/signing"
coreState "github.com/OffchainLabs/prysm/v6/beacon-chain/core/transition"
statenative "github.com/OffchainLabs/prysm/v6/beacon-chain/state/state-native"
"github.com/OffchainLabs/prysm/v6/config/params"
"github.com/OffchainLabs/prysm/v6/container/trie"
"github.com/OffchainLabs/prysm/v6/crypto/bls"
"github.com/OffchainLabs/prysm/v6/crypto/hash"
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
"github.com/OffchainLabs/prysm/v6/time"
"github.com/OffchainLabs/prysm/v7/async"
"github.com/OffchainLabs/prysm/v7/beacon-chain/core/signing"
coreState "github.com/OffchainLabs/prysm/v7/beacon-chain/core/transition"
statenative "github.com/OffchainLabs/prysm/v7/beacon-chain/state/state-native"
"github.com/OffchainLabs/prysm/v7/config/params"
"github.com/OffchainLabs/prysm/v7/container/trie"
"github.com/OffchainLabs/prysm/v7/crypto/bls"
"github.com/OffchainLabs/prysm/v7/crypto/hash"
"github.com/OffchainLabs/prysm/v7/encoding/bytesutil"
ethpb "github.com/OffchainLabs/prysm/v7/proto/prysm/v1alpha1"
"github.com/OffchainLabs/prysm/v7/time"
"github.com/pkg/errors"
)

View File

@@ -5,13 +5,13 @@ package interop
import (
"context"
coreState "github.com/OffchainLabs/prysm/v6/beacon-chain/core/transition"
statenative "github.com/OffchainLabs/prysm/v6/beacon-chain/state/state-native"
"github.com/OffchainLabs/prysm/v6/config/params"
"github.com/OffchainLabs/prysm/v6/container/trie"
enginev1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
"github.com/OffchainLabs/prysm/v6/time"
coreState "github.com/OffchainLabs/prysm/v7/beacon-chain/core/transition"
statenative "github.com/OffchainLabs/prysm/v7/beacon-chain/state/state-native"
"github.com/OffchainLabs/prysm/v7/config/params"
"github.com/OffchainLabs/prysm/v7/container/trie"
enginev1 "github.com/OffchainLabs/prysm/v7/proto/engine/v1"
ethpb "github.com/OffchainLabs/prysm/v7/proto/prysm/v1alpha1"
"github.com/OffchainLabs/prysm/v7/time"
"github.com/pkg/errors"
)

View File

@@ -3,12 +3,12 @@ package interop
import (
"testing"
state_native "github.com/OffchainLabs/prysm/v6/beacon-chain/state/state-native"
"github.com/OffchainLabs/prysm/v6/config/params"
"github.com/OffchainLabs/prysm/v6/container/trie"
enginev1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
"github.com/OffchainLabs/prysm/v6/testing/require"
state_native "github.com/OffchainLabs/prysm/v7/beacon-chain/state/state-native"
"github.com/OffchainLabs/prysm/v7/config/params"
"github.com/OffchainLabs/prysm/v7/container/trie"
enginev1 "github.com/OffchainLabs/prysm/v7/proto/engine/v1"
ethpb "github.com/OffchainLabs/prysm/v7/proto/prysm/v1alpha1"
"github.com/OffchainLabs/prysm/v7/testing/require"
)
func TestGenerateGenesisStateBellatrix(t *testing.T) {

View File

@@ -4,13 +4,13 @@ import (
"testing"
"time"
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/transition"
"github.com/OffchainLabs/prysm/v6/config/params"
"github.com/OffchainLabs/prysm/v6/container/trie"
eth "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
"github.com/OffchainLabs/prysm/v6/runtime/interop"
"github.com/OffchainLabs/prysm/v6/testing/assert"
"github.com/OffchainLabs/prysm/v6/testing/require"
"github.com/OffchainLabs/prysm/v7/beacon-chain/core/transition"
"github.com/OffchainLabs/prysm/v7/config/params"
"github.com/OffchainLabs/prysm/v7/container/trie"
eth "github.com/OffchainLabs/prysm/v7/proto/prysm/v1alpha1"
"github.com/OffchainLabs/prysm/v7/runtime/interop"
"github.com/OffchainLabs/prysm/v7/testing/assert"
"github.com/OffchainLabs/prysm/v7/testing/require"
)
func TestGenerateGenesisState(t *testing.T) {

View File

@@ -5,10 +5,10 @@ import (
"math/big"
"sync"
"github.com/OffchainLabs/prysm/v6/async"
"github.com/OffchainLabs/prysm/v6/crypto/bls"
"github.com/OffchainLabs/prysm/v6/crypto/hash"
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
"github.com/OffchainLabs/prysm/v7/async"
"github.com/OffchainLabs/prysm/v7/crypto/bls"
"github.com/OffchainLabs/prysm/v7/crypto/hash"
"github.com/OffchainLabs/prysm/v7/encoding/bytesutil"
"github.com/pkg/errors"
)

View File

@@ -5,9 +5,9 @@ import (
"os"
"testing"
"github.com/OffchainLabs/prysm/v6/runtime/interop"
"github.com/OffchainLabs/prysm/v6/testing/assert"
"github.com/OffchainLabs/prysm/v6/testing/require"
"github.com/OffchainLabs/prysm/v7/runtime/interop"
"github.com/OffchainLabs/prysm/v7/testing/assert"
"github.com/OffchainLabs/prysm/v7/testing/require"
"github.com/bazelbuild/rules_go/go/tools/bazel"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/go-yaml/yaml"

View File

@@ -5,8 +5,8 @@ import (
"math/big"
"time"
clparams "github.com/OffchainLabs/prysm/v6/config/params"
"github.com/OffchainLabs/prysm/v6/time/slots"
clparams "github.com/OffchainLabs/prysm/v7/config/params"
"github.com/OffchainLabs/prysm/v7/time/slots"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core"

View File

@@ -4,20 +4,20 @@ import (
"context"
"time"
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/altair"
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/helpers"
"github.com/OffchainLabs/prysm/v6/beacon-chain/state"
state_native "github.com/OffchainLabs/prysm/v6/beacon-chain/state/state-native"
"github.com/OffchainLabs/prysm/v6/beacon-chain/state/stateutil"
fieldparams "github.com/OffchainLabs/prysm/v6/config/fieldparams"
"github.com/OffchainLabs/prysm/v6/config/params"
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
"github.com/OffchainLabs/prysm/v6/container/trie"
"github.com/OffchainLabs/prysm/v6/crypto/bls"
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
enginev1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
"github.com/OffchainLabs/prysm/v6/runtime/version"
"github.com/OffchainLabs/prysm/v7/beacon-chain/core/altair"
"github.com/OffchainLabs/prysm/v7/beacon-chain/core/helpers"
"github.com/OffchainLabs/prysm/v7/beacon-chain/state"
state_native "github.com/OffchainLabs/prysm/v7/beacon-chain/state/state-native"
"github.com/OffchainLabs/prysm/v7/beacon-chain/state/stateutil"
fieldparams "github.com/OffchainLabs/prysm/v7/config/fieldparams"
"github.com/OffchainLabs/prysm/v7/config/params"
"github.com/OffchainLabs/prysm/v7/consensus-types/blocks"
"github.com/OffchainLabs/prysm/v7/container/trie"
"github.com/OffchainLabs/prysm/v7/crypto/bls"
"github.com/OffchainLabs/prysm/v7/encoding/bytesutil"
enginev1 "github.com/OffchainLabs/prysm/v7/proto/engine/v1"
ethpb "github.com/OffchainLabs/prysm/v7/proto/prysm/v1alpha1"
"github.com/OffchainLabs/prysm/v7/runtime/version"
"github.com/ethereum/go-ethereum/core/types"
"github.com/pkg/errors"
)
@@ -28,7 +28,7 @@ type PremineGenesisConfig struct {
GenesisTime time.Time
NVals uint64
PregenesisCreds uint64
Version int // as in "github.com/OffchainLabs/prysm/v6/runtime/version"
Version int // as in "github.com/OffchainLabs/prysm/v7/runtime/version"
GB *types.Block // geth genesis block
depositEntries *depositEntries
}

View File

@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/OffchainLabs/prysm/v6/runtime/version"
"github.com/OffchainLabs/prysm/v6/testing/require"
"github.com/OffchainLabs/prysm/v7/runtime/version"
"github.com/OffchainLabs/prysm/v7/testing/require"
"github.com/ethereum/go-ethereum/core/types"
)

View File

@@ -4,11 +4,11 @@ import (
"context"
"time"
coreState "github.com/OffchainLabs/prysm/v6/beacon-chain/core/transition"
statenative "github.com/OffchainLabs/prysm/v6/beacon-chain/state/state-native"
"github.com/OffchainLabs/prysm/v6/config/params"
"github.com/OffchainLabs/prysm/v6/container/trie"
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
coreState "github.com/OffchainLabs/prysm/v7/beacon-chain/core/transition"
statenative "github.com/OffchainLabs/prysm/v7/beacon-chain/state/state-native"
"github.com/OffchainLabs/prysm/v7/config/params"
"github.com/OffchainLabs/prysm/v7/container/trie"
ethpb "github.com/OffchainLabs/prysm/v7/proto/prysm/v1alpha1"
"github.com/pkg/errors"
)

View File

@@ -6,7 +6,7 @@ go_library(
"blob.go",
"data_column.go",
],
importpath = "github.com/OffchainLabs/prysm/v6/runtime/logging",
importpath = "github.com/OffchainLabs/prysm/v7/runtime/logging",
visibility = ["//visibility:public"],
deps = [
"//consensus-types/blocks:go_default_library",

View File

@@ -3,7 +3,7 @@ package logging
import (
"fmt"
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
"github.com/OffchainLabs/prysm/v7/consensus-types/blocks"
"github.com/sirupsen/logrus"
)

View File

@@ -3,7 +3,7 @@ package logging
import (
"fmt"
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
"github.com/OffchainLabs/prysm/v7/consensus-types/blocks"
"github.com/sirupsen/logrus"
)

View File

@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = ["formatter.go"],
importpath = "github.com/OffchainLabs/prysm/v6/runtime/logging/logrus-prefixed-formatter",
importpath = "github.com/OffchainLabs/prysm/v7/runtime/logging/logrus-prefixed-formatter",
visibility = ["//visibility:public"],
deps = [
"@com_github_mgutz_ansi//:go_default_library",

View File

@@ -5,8 +5,8 @@ import (
"regexp"
"testing"
prefixed "github.com/OffchainLabs/prysm/v6/runtime/logging/logrus-prefixed-formatter"
"github.com/OffchainLabs/prysm/v6/testing/require"
prefixed "github.com/OffchainLabs/prysm/v7/runtime/logging/logrus-prefixed-formatter"
"github.com/OffchainLabs/prysm/v7/testing/require"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)

View File

@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["maxprocs.go"],
importpath = "github.com/OffchainLabs/prysm/v6/runtime/maxprocs",
importpath = "github.com/OffchainLabs/prysm/v7/runtime/maxprocs",
visibility = ["//visibility:public"],
deps = [
"@com_github_sirupsen_logrus//:go_default_library",

View File

@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = ["messagehandler.go"],
importpath = "github.com/OffchainLabs/prysm/v6/runtime/messagehandler",
importpath = "github.com/OffchainLabs/prysm/v7/runtime/messagehandler",
visibility = ["//visibility:public"],
deps = [
"//monitoring/tracing/trace:go_default_library",

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"runtime/debug"
"github.com/OffchainLabs/prysm/v6/monitoring/tracing/trace"
"github.com/OffchainLabs/prysm/v7/monitoring/tracing/trace"
pubsub "github.com/libp2p/go-libp2p-pubsub"
"github.com/sirupsen/logrus"
"go.opentelemetry.io/otel/codes"

View File

@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/OffchainLabs/prysm/v6/runtime/messagehandler"
"github.com/OffchainLabs/prysm/v6/testing/require"
"github.com/OffchainLabs/prysm/v7/runtime/messagehandler"
"github.com/OffchainLabs/prysm/v7/testing/require"
pubsub "github.com/libp2p/go-libp2p-pubsub"
logTest "github.com/sirupsen/logrus/hooks/test"
)

View File

@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = ["prereq.go"],
importpath = "github.com/OffchainLabs/prysm/v6/runtime/prereqs",
importpath = "github.com/OffchainLabs/prysm/v7/runtime/prereqs",
visibility = ["//visibility:public"],
deps = [
"@com_github_pkg_errors//:go_default_library",

View File

@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/OffchainLabs/prysm/v6/testing/require"
"github.com/OffchainLabs/prysm/v7/testing/require"
"github.com/pkg/errors"
logTest "github.com/sirupsen/logrus/hooks/test"
)

View File

@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/OffchainLabs/prysm/v6/testing/assert"
"github.com/OffchainLabs/prysm/v6/testing/require"
"github.com/OffchainLabs/prysm/v7/testing/assert"
"github.com/OffchainLabs/prysm/v7/testing/require"
)
type mockService struct {

View File

@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = ["tos.go"],
importpath = "github.com/OffchainLabs/prysm/v6/runtime/tos",
importpath = "github.com/OffchainLabs/prysm/v7/runtime/tos",
visibility = ["//visibility:public"],
deps = [
"//cmd:go_default_library",

View File

@@ -4,9 +4,9 @@ import (
"path/filepath"
"strings"
"github.com/OffchainLabs/prysm/v6/cmd"
"github.com/OffchainLabs/prysm/v6/io/file"
"github.com/OffchainLabs/prysm/v6/io/prompt"
"github.com/OffchainLabs/prysm/v7/cmd"
"github.com/OffchainLabs/prysm/v7/io/file"
"github.com/OffchainLabs/prysm/v7/io/prompt"
"github.com/logrusorgru/aurora"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"

View File

@@ -6,8 +6,8 @@ import (
"path/filepath"
"testing"
"github.com/OffchainLabs/prysm/v6/cmd"
"github.com/OffchainLabs/prysm/v6/testing/require"
"github.com/OffchainLabs/prysm/v7/cmd"
"github.com/OffchainLabs/prysm/v7/testing/require"
"github.com/urfave/cli/v2"
)

View File

@@ -7,7 +7,7 @@ go_library(
"metrics.go",
"version.go",
],
importpath = "github.com/OffchainLabs/prysm/v6/runtime/version",
importpath = "github.com/OffchainLabs/prysm/v7/runtime/version",
visibility = ["//visibility:public"],
x_defs = {
"gitCommit": "{STABLE_GIT_COMMIT}",