mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 04:54:05 -05:00
Migrate Prysm repo to Offchain Labs organization ahead of Pectra V6 (#15140)
* Migrate Prysm repo to Offchain Labs organization ahead of Pectra upgrade v6 * Replace prysmaticlabs with OffchainLabs on general markdowns * Update mock * Gazelle and add mock.go to excluded generated mock file
This commit is contained in:
@@ -50,7 +50,7 @@ build:nostamp --nostamp
|
|||||||
|
|
||||||
# Build metadata
|
# Build metadata
|
||||||
build --build_metadata=ROLE=CI
|
build --build_metadata=ROLE=CI
|
||||||
build --build_metadata=REPO_URL=https://github.com/prysmaticlabs/prysm.git
|
build --build_metadata=REPO_URL=https://github.com/OffchainLabs/prysm.git
|
||||||
build --workspace_status_command=./hack/workspace_status_ci.sh
|
build --workspace_status_command=./hack/workspace_status_ci.sh
|
||||||
|
|
||||||
# Buildbuddy
|
# Buildbuddy
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ name = "go"
|
|||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[analyzers.meta]
|
[analyzers.meta]
|
||||||
import_paths = ["github.com/prysmaticlabs/prysm/v5"]
|
import_paths = ["github.com/OffchainLabs/prysm/v6"]
|
||||||
|
|
||||||
[[analyzers]]
|
[[analyzers]]
|
||||||
name = "test-coverage"
|
name = "test-coverage"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
language: go
|
language: go
|
||||||
go_import_path: github.com/prysmaticlabs/prysm
|
go_import_path: github.com/OffchainLabs/prysm
|
||||||
sudo: false
|
sudo: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ load("@io_bazel_rules_go//go:def.bzl", "nogo")
|
|||||||
load("@bazel_skylib//rules:common_settings.bzl", "string_setting")
|
load("@bazel_skylib//rules:common_settings.bzl", "string_setting")
|
||||||
load("@prysm//tools/nogo_config:def.bzl", "nogo_config_exclude")
|
load("@prysm//tools/nogo_config:def.bzl", "nogo_config_exclude")
|
||||||
|
|
||||||
prefix = "github.com/prysmaticlabs/prysm"
|
prefix = "github.com/OffchainLabs/prysm"
|
||||||
|
|
||||||
exports_files([
|
exports_files([
|
||||||
"LICENSE.md",
|
"LICENSE.md",
|
||||||
])
|
])
|
||||||
|
|
||||||
# gazelle:prefix github.com/prysmaticlabs/prysm/v5
|
# gazelle:prefix github.com/OffchainLabs/prysm/v6
|
||||||
# gazelle:map_kind go_library go_library @prysm//tools/go:def.bzl
|
# gazelle:map_kind go_library go_library @prysm//tools/go:def.bzl
|
||||||
# gazelle:map_kind go_test go_test @prysm//tools/go:def.bzl
|
# gazelle:map_kind go_test go_test @prysm//tools/go:def.bzl
|
||||||
# gazelle:map_kind go_repository go_repository @prysm//tools/go:def.bzl
|
# gazelle:map_kind go_repository go_repository @prysm//tools/go:def.bzl
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Note: The latest and most up-to-date documentation can be found on our [docs por
|
|||||||
|
|
||||||
Excited by our work and want to get involved in building out our sharding releases? Or maybe you haven't learned as much about the Ethereum protocol but are a savvy developer?
|
Excited by our work and want to get involved in building out our sharding releases? Or maybe you haven't learned as much about the Ethereum protocol but are a savvy developer?
|
||||||
|
|
||||||
You can explore our [Open Issues](https://github.com/prysmaticlabs/prysm/issues) in-the works for our different releases. Feel free to fork our repo and start creating PR’s after assigning yourself to an issue of interest. We are always chatting on [Discord](https://discord.gg/CTYGPUJ) drop us a line there if you want to get more involved or have any questions on our implementation!
|
You can explore our [Open Issues](https://github.com/OffchainLabs/prysm/issues) in-the works for our different releases. Feel free to fork our repo and start creating PR’s after assigning yourself to an issue of interest. We are always chatting on [Discord](https://discord.gg/CTYGPUJ) drop us a line there if you want to get more involved or have any questions on our implementation!
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
> Please, **do not send pull requests for trivial changes**, such as typos, these will be rejected. These types of pull requests incur a cost to reviewers and do not provide much value to the project. If you are unsure, please open an issue first to discuss the change.
|
> Please, **do not send pull requests for trivial changes**, such as typos, these will be rejected. These types of pull requests incur a cost to reviewers and do not provide much value to the project. If you are unsure, please open an issue first to discuss the change.
|
||||||
@@ -15,15 +15,15 @@ You can explore our [Open Issues](https://github.com/prysmaticlabs/prysm/issues)
|
|||||||
|
|
||||||
**2. Fork the Prysm repo.**
|
**2. Fork the Prysm repo.**
|
||||||
|
|
||||||
Sign in to your GitHub account or create a new account if you do not have one already. Then navigate your browser to https://github.com/prysmaticlabs/prysm/. In the upper right hand corner of the page, click “fork”. This will create a copy of the Prysm repo in your account.
|
Sign in to your GitHub account or create a new account if you do not have one already. Then navigate your browser to https://github.com/OffchainLabs/prysm/. In the upper right hand corner of the page, click “fork”. This will create a copy of the Prysm repo in your account.
|
||||||
|
|
||||||
**3. Create a local clone of Prysm.**
|
**3. Create a local clone of Prysm.**
|
||||||
|
|
||||||
```
|
```
|
||||||
$ mkdir -p $GOPATH/src/github.com/prysmaticlabs
|
$ mkdir -p $GOPATH/src/github.com/OffchainLabs
|
||||||
$ cd $GOPATH/src/github.com/prysmaticlabs
|
$ cd $GOPATH/src/github.com/OffchainLabs
|
||||||
$ git clone https://github.com/prysmaticlabs/prysm.git
|
$ git clone https://github.com/OffchainLabs/prysm.git
|
||||||
$ cd $GOPATH/src/github.com/prysmaticlabs/prysm
|
$ cd $GOPATH/src/github.com/OffchainLabs/prysm
|
||||||
```
|
```
|
||||||
|
|
||||||
**4. Link your local clone to the fork on your GitHub repo.**
|
**4. Link your local clone to the fork on your GitHub repo.**
|
||||||
@@ -35,13 +35,13 @@ $ git remote add myprysmrepo https://github.com/<your_github_user_name>/prysm.gi
|
|||||||
**5. Link your local clone to the Prysmatic Labs repo so that you can easily fetch future changes to the Prysmatic Labs repo.**
|
**5. Link your local clone to the Prysmatic Labs repo so that you can easily fetch future changes to the Prysmatic Labs repo.**
|
||||||
|
|
||||||
```
|
```
|
||||||
$ git remote add prysm https://github.com/prysmaticlabs/prysm.git
|
$ git remote add prysm https://github.com/OffchainLabs/prysm.git
|
||||||
$ git remote -v (you should see myrepo and prysm in the list of remotes)
|
$ git remote -v (you should see myrepo and prysm in the list of remotes)
|
||||||
```
|
```
|
||||||
|
|
||||||
**6. Find an issue to work on.**
|
**6. Find an issue to work on.**
|
||||||
|
|
||||||
Check out open issues at https://github.com/prysmaticlabs/prysm/issues and pick one. Leave a comment to let the development team know that you would like to work on it. Or examine the code for areas that can be improved and leave a comment to the development team to ask if they would like you to work on it.
|
Check out open issues at https://github.com/OffchainLabs/prysm/issues and pick one. Leave a comment to let the development team know that you would like to work on it. Or examine the code for areas that can be improved and leave a comment to the development team to ask if they would like you to work on it.
|
||||||
|
|
||||||
**7. Create a local branch with a name that clearly identifies what you will be working on.**
|
**7. Create a local branch with a name that clearly identifies what you will be working on.**
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ All PRs must must include a changelog fragment file in the `changelog` directory
|
|||||||
|
|
||||||
**17. Create a pull request.**
|
**17. Create a pull request.**
|
||||||
|
|
||||||
Navigate your browser to https://github.com/prysmaticlabs/prysm and click on the new pull request button. In the “base” box on the left, leave the default selection “base develop”, the branch that you want your changes to be applied to. In the “compare” box on the right, select feature-in-progress-branch, the branch containing the changes you want to apply. You will then be asked to answer a few questions about your pull request. After you complete the questionnaire, the pull request will appear in the list of pull requests at https://github.com/prysmaticlabs/prysm/pulls. Ensure that you have added an entry to CHANGELOG.md if your PR is a user-facing change. See the [Maintaining CHANGELOG.md](#maintaining-changelogmd) section for more information.
|
Navigate your browser to https://github.com/OffchainLabs/prysm and click on the new pull request button. In the “base” box on the left, leave the default selection “base develop”, the branch that you want your changes to be applied to. In the “compare” box on the right, select feature-in-progress-branch, the branch containing the changes you want to apply. You will then be asked to answer a few questions about your pull request. After you complete the questionnaire, the pull request will appear in the list of pull requests at https://github.com/OffchainLabs/prysm/pulls. Ensure that you have added an entry to CHANGELOG.md if your PR is a user-facing change. See the [Maintaining CHANGELOG.md](#maintaining-changelogmd) section for more information.
|
||||||
|
|
||||||
**18. Respond to comments by Core Contributors.**
|
**18. Respond to comments by Core Contributors.**
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Prysm is go project with many complicated dependencies, including some c++ based libraries. There
|
Prysm is go project with many complicated dependencies, including some c++ based libraries. There
|
||||||
are two parts to Prysm's dependency management. Go modules and bazel managed dependencies. Be sure
|
are two parts to Prysm's dependency management. Go modules and bazel managed dependencies. Be sure
|
||||||
to read [Why Bazel?](https://github.com/prysmaticlabs/documentation/issues/138) to fully
|
to read [Why Bazel?](https://github.com/OffchainLabs/documentation/issues/138) to fully
|
||||||
understand the reasoning behind an additional layer of build tooling via Bazel rather than a pure
|
understand the reasoning behind an additional layer of build tooling via Bazel rather than a pure
|
||||||
"go build" project.
|
"go build" project.
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ bazel build //beacon-chain --config=release
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get github.com/prysmaticlabs/example@v1.2.3
|
go get github.com/OffchainLabs/example@v1.2.3
|
||||||
bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro=deps.bzl%prysm_deps -prune=true
|
bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro=deps.bzl%prysm_deps -prune=true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ This README details how to setup Prysm for interop testing for usage with other
|
|||||||
## Installation & Setup
|
## Installation & Setup
|
||||||
|
|
||||||
1. Install [Bazel](https://docs.bazel.build/versions/master/install.html) **(Recommended)**
|
1. Install [Bazel](https://docs.bazel.build/versions/master/install.html) **(Recommended)**
|
||||||
2. `git clone https://github.com/prysmaticlabs/prysm && cd prysm`
|
2. `git clone https://github.com/OffchainLabs/prysm && cd prysm`
|
||||||
3. `bazel build //cmd/...`
|
3. `bazel build //cmd/...`
|
||||||
|
|
||||||
## Starting from Genesis
|
## Starting from Genesis
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -3,11 +3,11 @@
|
|||||||
<div align="left">
|
<div align="left">
|
||||||
|
|
||||||
[](https://buildkite.com/prysmatic-labs/prysm)
|
[](https://buildkite.com/prysmatic-labs/prysm)
|
||||||
[](https://goreportcard.com/report/github.com/prysmaticlabs/prysm)
|
[](https://goreportcard.com/report/github.com/OffchainLabs/prysm)
|
||||||
[](https://github.com/ethereum/consensus-specs/tree/v1.4.0)
|
[](https://github.com/ethereum/consensus-specs/tree/v1.4.0)
|
||||||
[](https://github.com/ethereum/execution-apis/tree/v1.0.0-beta.2/src/engine)
|
[](https://github.com/ethereum/execution-apis/tree/v1.0.0-beta.2/src/engine)
|
||||||
[](https://discord.gg/prysmaticlabs)
|
[](https://discord.gg/OffchainLabs)
|
||||||
[](https://www.gitpoap.io/gh/prysmaticlabs/prysm)
|
[](https://www.gitpoap.io/gh/OffchainLabs/prysm)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
This is the core repository for Prysm, a [Golang](https://golang.org/) implementation of the [Ethereum Consensus](https://ethereum.org/en/developers/docs/consensus-mechanisms/#proof-of-stake) [specification](https://github.com/ethereum/consensus-specs), developed by [Offchain Labs](https://www.offchainlabs.com).
|
This is the core repository for Prysm, a [Golang](https://golang.org/) implementation of the [Ethereum Consensus](https://ethereum.org/en/developers/docs/consensus-mechanisms/#proof-of-stake) [specification](https://github.com/ethereum/consensus-specs), developed by [Offchain Labs](https://www.offchainlabs.com).
|
||||||
|
|
||||||
See the [Changelog](https://github.com/prysmaticlabs/prysm/releases) for details of the latest releases and upcoming breaking changes.
|
See the [Changelog](https://github.com/OffchainLabs/prysm/releases) for details of the latest releases and upcoming breaking changes.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ See the [Changelog](https://github.com/prysmaticlabs/prysm/releases) for details
|
|||||||
|
|
||||||
A detailed set of installation and usage instructions as well as breakdowns of each individual component are available in the **[official documentation portal](https://docs.prylabs.network)**.
|
A detailed set of installation and usage instructions as well as breakdowns of each individual component are available in the **[official documentation portal](https://docs.prylabs.network)**.
|
||||||
|
|
||||||
💬 **Need help?** Join our **[Discord Community](https://discord.gg/prysmaticlabs)** for support.
|
💬 **Need help?** Join our **[Discord Community](https://discord.gg/OffchainLabs)** for support.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -46,8 +46,8 @@ To participate in staking, you can join the **[official Ethereum launchpad](http
|
|||||||
|
|
||||||
Prysm maintains two permanent branches:
|
Prysm maintains two permanent branches:
|
||||||
|
|
||||||
- **[`master`](https://github.com/prysmaticlabs/prysm/tree/master)** - This points to the latest stable release. It is ideal for most users.
|
- **[`master`](https://github.com/OffchainLabs/prysm/tree/master)** - This points to the latest stable release. It is ideal for most users.
|
||||||
- **[`develop`](https://github.com/prysmaticlabs/prysm/tree/develop)** - This is used for development and contains the latest PRs. Developers should base their PRs on this branch.
|
- **[`develop`](https://github.com/OffchainLabs/prysm/tree/develop)** - This is used for development and contains the latest PRs. Developers should base their PRs on this branch.
|
||||||
|
|
||||||
### 🛠 Contribution Guide
|
### 🛠 Contribution Guide
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
## Supported Versions
|
## Supported Versions
|
||||||
|
|
||||||
[Releases](https://github.com/prysmaticlabs/prysm/releases/) contains all available releases. We recommend using the [most recently released version](https://github.com/prysmaticlabs/prysm/releases/latest).
|
[Releases](https://github.com/OffchainLabs/prysm/releases/) contains all available releases. We recommend using the [most recently released version](https://github.com/OffchainLabs/prysm/releases/latest).
|
||||||
|
|
||||||
## Reporting a Vulnerability
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
Please see our signed [security.txt](https://github.com/prysmaticlabs/prysm/blob/develop/.well-known/security.txt) for preferred encryption and reporting destination.
|
Please see our signed [security.txt](https://github.com/OffchainLabs/prysm/blob/develop/.well-known/security.txt) for preferred encryption and reporting destination.
|
||||||
|
|
||||||
**Please do not file a public ticket** mentioning the vulnerability, as doing so could increase the likelihood of the vulnerability being used before a fix has been created, released and installed on the network.
|
**Please do not file a public ticket** mentioning the vulnerability, as doing so could increase the likelihood of the vulnerability being used before a fix has been created, released and installed on the network.
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ go_library(
|
|||||||
"headers.go",
|
"headers.go",
|
||||||
"jwt.go",
|
"jwt.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api",
|
importpath = "github.com/OffchainLabs/prysm/v6/api",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//crypto/rand:go_default_library",
|
"//crypto/rand:go_default_library",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|||||||
go_library(
|
go_library(
|
||||||
name = "go_default_library",
|
name = "go_default_library",
|
||||||
srcs = ["common.go"],
|
srcs = ["common.go"],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/apiutil",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/apiutil",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = ["//consensus-types/primitives:go_default_library"],
|
deps = ["//consensus-types/primitives:go_default_library"],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
neturl "net/url"
|
neturl "net/url"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Uint64ToString is a util function that will convert uints to string
|
// Uint64ToString is a util function that will convert uints to string
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestBeaconApiHelpers_TestUint64ToString(t *testing.T) {
|
func TestBeaconApiHelpers_TestUint64ToString(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ go_library(
|
|||||||
"errors.go",
|
"errors.go",
|
||||||
"options.go",
|
"options.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/client",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/client",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = ["@com_github_pkg_errors//:go_default_library"],
|
deps = ["@com_github_pkg_errors//:go_default_library"],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ go_library(
|
|||||||
"log.go",
|
"log.go",
|
||||||
"template.go",
|
"template.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/client/beacon",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/client/beacon",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//api/client:go_default_library",
|
"//api/client:go_default_library",
|
||||||
|
|||||||
@@ -12,15 +12,15 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/client"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/server"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/server/structs"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/network/forks"
|
||||||
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/client"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/server"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/server/structs"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/network/forks"
|
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/client"
|
"github.com/OffchainLabs/prysm/v6/api/client"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestParseNodeVersion(t *testing.T) {
|
func TestParseNodeVersion(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ go_library(
|
|||||||
"interfaces.go",
|
"interfaces.go",
|
||||||
"mock.go",
|
"mock.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/client/beacon/health",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/client/beacon/health",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = ["@org_uber_go_mock//gomock:go_default_library"],
|
deps = ["@org_uber_go_mock//gomock:go_default_library"],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ go_library(
|
|||||||
"errors.go",
|
"errors.go",
|
||||||
"types.go",
|
"types.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/client/builder",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/client/builder",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//api:go_default_library",
|
"//api:go_default_library",
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
package builder
|
package builder
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
consensus_types "github.com/OffchainLabs/prysm/v6/consensus-types"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
v1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/runtime/version"
|
||||||
ssz "github.com/prysmaticlabs/fastssz"
|
ssz "github.com/prysmaticlabs/fastssz"
|
||||||
consensus_types "github.com/prysmaticlabs/prysm/v5/consensus-types"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
v1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// SignedBid is an interface describing the method set of a signed builder bid.
|
// SignedBid is an interface describing the method set of a signed builder bid.
|
||||||
|
|||||||
@@ -12,19 +12,19 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/client"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/server/structs"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/monitoring/tracing"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/monitoring/tracing/trace"
|
||||||
|
v1 "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/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/api"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/client"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/server/structs"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/monitoring/tracing"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/monitoring/tracing/trace"
|
|
||||||
v1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
|
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,17 +10,17 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/server/structs"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
v1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
|
eth "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
"github.com/prysmaticlabs/go-bitfield"
|
"github.com/prysmaticlabs/go-bitfield"
|
||||||
"github.com/prysmaticlabs/prysm/v5/api"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/server/structs"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
v1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
eth "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library")
|
|||||||
go_library(
|
go_library(
|
||||||
name = "go_default_library",
|
name = "go_default_library",
|
||||||
srcs = ["mock.go"],
|
srcs = ["mock.go"],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/client/builder/testing",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/client/builder/testing",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//api/client/builder:go_default_library",
|
"//api/client/builder:go_default_library",
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ package testing
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/client/builder"
|
"github.com/OffchainLabs/prysm/v6/api/client/builder"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
v1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
v1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockClient is a mock implementation of BuilderClient.
|
// MockClient is a mock implementation of BuilderClient.
|
||||||
|
|||||||
@@ -7,19 +7,19 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/server"
|
||||||
|
fieldparams "github.com/OffchainLabs/prysm/v6/config/fieldparams"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
consensusblocks "github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
types "github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/math"
|
||||||
|
v1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
|
eth "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/runtime/version"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/server"
|
|
||||||
fieldparams "github.com/prysmaticlabs/prysm/v5/config/fieldparams"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
consensusblocks "github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
types "github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/math"
|
|
||||||
v1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
eth "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -11,18 +11,18 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/server/structs"
|
||||||
|
fieldparams "github.com/OffchainLabs/prysm/v6/config/fieldparams"
|
||||||
|
consensusblocks "github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/math"
|
||||||
|
v1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
|
eth "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/runtime/version"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/go-bitfield"
|
"github.com/prysmaticlabs/go-bitfield"
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/server/structs"
|
|
||||||
fieldparams "github.com/prysmaticlabs/prysm/v5/config/fieldparams"
|
|
||||||
consensusblocks "github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/math"
|
|
||||||
v1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
eth "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func ezDecode(t *testing.T, s string) []byte {
|
func ezDecode(t *testing.T, s string) []byte {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestValidHostname(t *testing.T) {
|
func TestValidHostname(t *testing.T) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ go_library(
|
|||||||
"event_stream.go",
|
"event_stream.go",
|
||||||
"utils.go",
|
"utils.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/client/event",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/client/event",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//api:go_default_library",
|
"//api:go_default_library",
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/client"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/api"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/client"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestScanLinesWithCarriage(t *testing.T) {
|
func TestScanLinesWithCarriage(t *testing.T) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library")
|
|||||||
go_library(
|
go_library(
|
||||||
name = "go_default_library",
|
name = "go_default_library",
|
||||||
srcs = ["client.go"],
|
srcs = ["client.go"],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/client/validator",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/client/validator",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//api/client:go_default_library",
|
"//api/client:go_default_library",
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/client"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/validator/rpc"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/client"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/validator/rpc"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ go_library(
|
|||||||
"grpcutils.go",
|
"grpcutils.go",
|
||||||
"parameters.go",
|
"parameters.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/grpc",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/grpc",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"@com_github_sirupsen_logrus//:go_default_library",
|
"@com_github_sirupsen_logrus//:go_default_library",
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
logTest "github.com/sirupsen/logrus/hooks/test"
|
logTest "github.com/sirupsen/logrus/hooks/test"
|
||||||
"google.golang.org/grpc/metadata"
|
"google.golang.org/grpc/metadata"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/OffchainLabs/prysm/v6/crypto/rand"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/crypto/rand"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// GenerateRandomHexString generates a random hex string that follows the standards for jwt token
|
// GenerateRandomHexString generates a random hex string that follows the standards for jwt token
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package api
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGenerateRandomHexString(t *testing.T) {
|
func TestGenerateRandomHexString(t *testing.T) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|||||||
go_library(
|
go_library(
|
||||||
name = "go_default_library",
|
name = "go_default_library",
|
||||||
srcs = ["pagination.go"],
|
srcs = ["pagination.go"],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/pagination",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/pagination",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//config/params:go_default_library",
|
"//config/params:go_default_library",
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// StartAndEndPage takes in the requested page token, wanted page size, total page size.
|
// StartAndEndPage takes in the requested page token, wanted page size, total page size.
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package pagination_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/pagination"
|
"github.com/OffchainLabs/prysm/v6/api/pagination"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestStartAndEndPage(t *testing.T) {
|
func TestStartAndEndPage(t *testing.T) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|||||||
go_library(
|
go_library(
|
||||||
name = "go_default_library",
|
name = "go_default_library",
|
||||||
srcs = ["error.go"],
|
srcs = ["error.go"],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/server",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/server",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDecodeError(t *testing.T) {
|
func TestDecodeError(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ go_library(
|
|||||||
"options.go",
|
"options.go",
|
||||||
"server.go",
|
"server.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/server/httprest",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/server/httprest",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//api/server/middleware:go_default_library",
|
"//api/server/middleware:go_default_library",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/server/middleware"
|
"github.com/OffchainLabs/prysm/v6/api/server/middleware"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Option is a http rest server functional parameter type.
|
// Option is a http rest server functional parameter type.
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/server/middleware"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/runtime"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/server/middleware"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/runtime"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ runtime.Service = (*Server)(nil)
|
var _ runtime.Service = (*Server)(nil)
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/cmd/beacon-chain/flags"
|
"github.com/OffchainLabs/prysm/v6/cmd/beacon-chain/flags"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
logTest "github.com/sirupsen/logrus/hooks/test"
|
logTest "github.com/sirupsen/logrus/hooks/test"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ go_library(
|
|||||||
"middleware.go",
|
"middleware.go",
|
||||||
"util.go",
|
"util.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/server/middleware",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/server/middleware",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = ["@com_github_rs_cors//:go_default_library"],
|
deps = ["@com_github_rs_cors//:go_default_library"],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/api"
|
"github.com/OffchainLabs/prysm/v6/api"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNormalizeQueryValuesHandler(t *testing.T) {
|
func TestNormalizeQueryValuesHandler(t *testing.T) {
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package middleware
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNormalizeQueryValues(t *testing.T) {
|
func TestNormalizeQueryValues(t *testing.T) {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ go_library(
|
|||||||
"other.go",
|
"other.go",
|
||||||
"state.go",
|
"state.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/api/server/structs",
|
importpath = "github.com/OffchainLabs/prysm/v6/api/server/structs",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//api/server:go_default_library",
|
"//api/server:go_default_library",
|
||||||
|
|||||||
@@ -4,20 +4,20 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/server"
|
||||||
|
fieldparams "github.com/OffchainLabs/prysm/v6/config/fieldparams"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/validator"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/container/slice"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/math"
|
||||||
|
enginev1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
|
ethv1 "github.com/OffchainLabs/prysm/v6/proto/eth/v1"
|
||||||
|
eth "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/server"
|
|
||||||
fieldparams "github.com/prysmaticlabs/prysm/v5/config/fieldparams"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/validator"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/container/slice"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/math"
|
|
||||||
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
ethv1 "github.com/prysmaticlabs/prysm/v5/proto/eth/v1"
|
|
||||||
eth "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var errNilValue = errors.New("nil value")
|
var errNilValue = errors.New("nil value")
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package structs
|
|||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/server"
|
"github.com/OffchainLabs/prysm/v6/api/server"
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
eth "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
eth "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (sc *Sidecar) ToConsensus() (*eth.BlobSidecar, error) {
|
func (sc *Sidecar) ToConsensus() (*eth.BlobSidecar, error) {
|
||||||
|
|||||||
@@ -4,17 +4,17 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/server"
|
||||||
|
fieldparams "github.com/OffchainLabs/prysm/v6/config/fieldparams"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/container/slice"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
enginev1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
|
eth "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/server"
|
|
||||||
fieldparams "github.com/prysmaticlabs/prysm/v5/config/fieldparams"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/container/slice"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
eth "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var ErrUnsupportedConversion = errors.New("Could not determine api struct type to use for value")
|
var ErrUnsupportedConversion = errors.New("Could not determine api struct type to use for value")
|
||||||
|
|||||||
@@ -4,15 +4,15 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/api/server"
|
||||||
|
fieldparams "github.com/OffchainLabs/prysm/v6/config/fieldparams"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/container/slice"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
enginev1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/prysmaticlabs/prysm/v5/api/server"
|
|
||||||
fieldparams "github.com/prysmaticlabs/prysm/v5/config/fieldparams"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/container/slice"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
enginev1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func fillByteSlice(sliceLength int, value byte) []byte {
|
func fillByteSlice(sliceLength int, value byte) []byte {
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
|
enginev1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/runtime/version"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func LightClientUpdateFromConsensus(update interfaces.LightClientUpdate) (*LightClientUpdate, error) {
|
func LightClientUpdateFromConsensus(update interfaces.LightClientUpdate) (*LightClientUpdate, error) {
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
beaconState "github.com/OffchainLabs/prysm/v6/beacon-chain/state"
|
||||||
|
enginev1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
beaconState "github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
|
|
||||||
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var errPayloadHeaderNotFound = errors.New("expected payload header not found")
|
var errPayloadHeaderNotFound = errors.New("expected payload header not found")
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package structs
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
eth "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
eth "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDepositSnapshotFromConsensus(t *testing.T) {
|
func TestDepositSnapshotFromConsensus(t *testing.T) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package structs
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AggregateAttestationResponse struct {
|
type AggregateAttestationResponse struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ go_library(
|
|||||||
"multilock.go",
|
"multilock.go",
|
||||||
"scatter.go",
|
"scatter.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/async",
|
importpath = "github.com/OffchainLabs/prysm/v6/async",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = ["@com_github_sirupsen_logrus//:go_default_library"],
|
deps = ["@com_github_sirupsen_logrus//:go_default_library"],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|||||||
go_library(
|
go_library(
|
||||||
name = "go_default_library",
|
name = "go_default_library",
|
||||||
srcs = ["abool.go"],
|
srcs = ["abool.go"],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/async/abool",
|
importpath = "github.com/OffchainLabs/prysm/v6/async/abool",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/async"
|
"github.com/OffchainLabs/prysm/v6/async"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/async"
|
"github.com/OffchainLabs/prysm/v6/async"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/util"
|
"github.com/OffchainLabs/prysm/v6/testing/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDebounce_NoEvents(t *testing.T) {
|
func TestDebounce_NoEvents(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ go_library(
|
|||||||
"interface.go",
|
"interface.go",
|
||||||
"subscription.go",
|
"subscription.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/async/event",
|
importpath = "github.com/OffchainLabs/prysm/v6/async/event",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//time/mclock:go_default_library",
|
"//time/mclock:go_default_library",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/async/event"
|
"github.com/OffchainLabs/prysm/v6/async/event"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This example demonstrates how SubscriptionScope can be used to control the lifetime of
|
// This example demonstrates how SubscriptionScope can be used to control the lifetime of
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ package event_test
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/async/event"
|
"github.com/OffchainLabs/prysm/v6/async/event"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleNewSubscription() {
|
func ExampleNewSubscription() {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/time/mclock"
|
"github.com/OffchainLabs/prysm/v6/time/mclock"
|
||||||
)
|
)
|
||||||
|
|
||||||
// waitQuotient is divided against the max backoff time, in order to have N requests based on the full
|
// waitQuotient is divided against the max backoff time, in order to have N requests based on the full
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errInts = errors.New("error in subscribeInts")
|
var errInts = errors.New("error in subscribeInts")
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/async"
|
"github.com/OffchainLabs/prysm/v6/async"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestEveryRuns(t *testing.T) {
|
func TestEveryRuns(t *testing.T) {
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/async"
|
"github.com/OffchainLabs/prysm/v6/async"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDouble(t *testing.T) {
|
func TestDouble(t *testing.T) {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ go_library(
|
|||||||
"tracked_proposer.go",
|
"tracked_proposer.go",
|
||||||
"weak_subjectivity_checks.go",
|
"weak_subjectivity_checks.go",
|
||||||
],
|
],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/beacon-chain/blockchain",
|
importpath = "github.com/OffchainLabs/prysm/v6/beacon-chain/blockchain",
|
||||||
visibility = [
|
visibility = [
|
||||||
"//beacon-chain:__subpackages__",
|
"//beacon-chain:__subpackages__",
|
||||||
"//cmd/beacon-chain:__subpackages__",
|
"//cmd/beacon-chain:__subpackages__",
|
||||||
|
|||||||
@@ -5,21 +5,21 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/helpers"
|
||||||
|
f "github.com/OffchainLabs/prysm/v6/beacon-chain/forkchoice"
|
||||||
|
doublylinkedtree "github.com/OffchainLabs/prysm/v6/beacon-chain/forkchoice/doubly-linked-tree"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state"
|
||||||
|
fieldparams "github.com/OffchainLabs/prysm/v6/config/fieldparams"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
consensus_blocks "github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/forkchoice"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/monitoring/tracing/trace"
|
||||||
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/time/slots"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/helpers"
|
|
||||||
f "github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice"
|
|
||||||
doublylinkedtree "github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice/doubly-linked-tree"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
|
|
||||||
fieldparams "github.com/prysmaticlabs/prysm/v5/config/fieldparams"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
consensus_blocks "github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/forkchoice"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/monitoring/tracing/trace"
|
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/time/slots"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ChainInfoFetcher defines a common interface for methods in blockchain service which
|
// ChainInfoFetcher defines a common interface for methods in blockchain service which
|
||||||
|
|||||||
@@ -3,13 +3,13 @@ package blockchain
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state"
|
||||||
|
consensus_blocks "github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/forkchoice"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/runtime/version"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
|
|
||||||
consensus_blocks "github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/forkchoice"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// CachedHeadRoot returns the corresponding value from Forkchoice
|
// CachedHeadRoot returns the corresponding value from Forkchoice
|
||||||
|
|||||||
@@ -4,14 +4,14 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
testDB "github.com/prysmaticlabs/prysm/v5/beacon-chain/db/testing"
|
testDB "github.com/OffchainLabs/prysm/v6/beacon-chain/db/testing"
|
||||||
doublylinkedtree "github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice/doubly-linked-tree"
|
doublylinkedtree "github.com/OffchainLabs/prysm/v6/beacon-chain/forkchoice/doubly-linked-tree"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state/stategen"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state/stategen"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/util"
|
"github.com/OffchainLabs/prysm/v6/testing/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHeadSlot_DataRace(t *testing.T) {
|
func TestHeadSlot_DataRace(t *testing.T) {
|
||||||
|
|||||||
@@ -5,21 +5,21 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
testDB "github.com/prysmaticlabs/prysm/v5/beacon-chain/db/testing"
|
testDB "github.com/OffchainLabs/prysm/v6/beacon-chain/db/testing"
|
||||||
doublylinkedtree "github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice/doubly-linked-tree"
|
doublylinkedtree "github.com/OffchainLabs/prysm/v6/beacon-chain/forkchoice/doubly-linked-tree"
|
||||||
forkchoicetypes "github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice/types"
|
forkchoicetypes "github.com/OffchainLabs/prysm/v6/beacon-chain/forkchoice/types"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state"
|
||||||
state_native "github.com/prysmaticlabs/prysm/v5/beacon-chain/state/state-native"
|
state_native "github.com/OffchainLabs/prysm/v6/beacon-chain/state/state-native"
|
||||||
fieldparams "github.com/prysmaticlabs/prysm/v5/config/fieldparams"
|
fieldparams "github.com/OffchainLabs/prysm/v6/config/fieldparams"
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
enginev1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/util"
|
"github.com/OffchainLabs/prysm/v6/testing/util"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
package blockchain
|
package blockchain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/features"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/time"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/features"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var stateDefragmentationTime = promauto.NewSummary(prometheus.SummaryOpts{
|
var stateDefragmentationTime = promauto.NewSummary(prometheus.SummaryOpts{
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package blockchain
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestIsInvalidBlock(t *testing.T) {
|
func TestIsInvalidBlock(t *testing.T) {
|
||||||
|
|||||||
@@ -4,29 +4,29 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/async/event"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/cache"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/feed"
|
||||||
|
statefeed "github.com/OffchainLabs/prysm/v6/beacon-chain/core/feed/state"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/helpers"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/time"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/transition"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/execution"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/features"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
consensusblocks "github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
|
payloadattribute "github.com/OffchainLabs/prysm/v6/consensus-types/payload-attribute"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/monitoring/tracing/trace"
|
||||||
|
enginev1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/runtime/version"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/time/slots"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/async/event"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/cache"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/feed"
|
|
||||||
statefeed "github.com/prysmaticlabs/prysm/v5/beacon-chain/core/feed/state"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/helpers"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/time"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/transition"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/execution"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/features"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
consensusblocks "github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
payloadattribute "github.com/prysmaticlabs/prysm/v5/consensus-types/payload-attribute"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/monitoring/tracing/trace"
|
|
||||||
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/time/slots"
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,27 +5,27 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/cache"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/execution"
|
||||||
|
mockExecution "github.com/OffchainLabs/prysm/v6/beacon-chain/execution/testing"
|
||||||
|
forkchoicetypes "github.com/OffchainLabs/prysm/v6/beacon-chain/forkchoice/types"
|
||||||
|
bstate "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/config/features"
|
||||||
|
fieldparams "github.com/OffchainLabs/prysm/v6/config/fieldparams"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
consensusblocks "github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
v1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/testing/util"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
gethtypes "github.com/ethereum/go-ethereum/core/types"
|
gethtypes "github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/cache"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/execution"
|
|
||||||
mockExecution "github.com/prysmaticlabs/prysm/v5/beacon-chain/execution/testing"
|
|
||||||
forkchoicetypes "github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice/types"
|
|
||||||
bstate "github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
|
|
||||||
state_native "github.com/prysmaticlabs/prysm/v5/beacon-chain/state/state-native"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/features"
|
|
||||||
fieldparams "github.com/prysmaticlabs/prysm/v5/config/fieldparams"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
consensusblocks "github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
v1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/util"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_NotifyForkchoiceUpdate_GetPayloadAttrErrorCanContinue(t *testing.T) {
|
func Test_NotifyForkchoiceUpdate_GetPayloadAttrErrorCanContinue(t *testing.T) {
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
doublylinkedtree "github.com/OffchainLabs/prysm/v6/beacon-chain/forkchoice/doubly-linked-tree"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
|
payloadattribute "github.com/OffchainLabs/prysm/v6/consensus-types/payload-attribute"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/monitoring/tracing/trace"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/time/slots"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
doublylinkedtree "github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice/doubly-linked-tree"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
payloadattribute "github.com/prysmaticlabs/prysm/v5/consensus-types/payload-attribute"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/monitoring/tracing/trace"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/time/slots"
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/cache"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/cache"
|
||||||
testDB "github.com/prysmaticlabs/prysm/v5/beacon-chain/db/testing"
|
testDB "github.com/OffchainLabs/prysm/v6/beacon-chain/db/testing"
|
||||||
mockExecution "github.com/prysmaticlabs/prysm/v5/beacon-chain/execution/testing"
|
mockExecution "github.com/OffchainLabs/prysm/v6/beacon-chain/execution/testing"
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/util"
|
"github.com/OffchainLabs/prysm/v6/testing/util"
|
||||||
logTest "github.com/sirupsen/logrus/hooks/test"
|
logTest "github.com/sirupsen/logrus/hooks/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,23 +5,23 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/feed"
|
||||||
|
statefeed "github.com/OffchainLabs/prysm/v6/beacon-chain/core/feed/state"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/forkchoice"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/features"
|
||||||
|
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/consensus-types/interfaces"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/math"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/monitoring/tracing/trace"
|
||||||
|
ethpbv1 "github.com/OffchainLabs/prysm/v6/proto/eth/v1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/runtime/version"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/time/slots"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/feed"
|
|
||||||
statefeed "github.com/prysmaticlabs/prysm/v5/beacon-chain/core/feed/state"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/features"
|
|
||||||
fieldparams "github.com/prysmaticlabs/prysm/v5/config/fieldparams"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/math"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/monitoring/tracing/trace"
|
|
||||||
ethpbv1 "github.com/prysmaticlabs/prysm/v5/proto/eth/v1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/time/slots"
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,18 +4,18 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/async"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/cache"
|
||||||
|
"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/core/signing"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/transition"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/time/slots"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/async"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/cache"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/altair"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/helpers"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/signing"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/transition"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/time/slots"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Initialize the state cache for sync committees.
|
// Initialize the state cache for sync committees.
|
||||||
|
|||||||
@@ -4,14 +4,14 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/cache"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/cache"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/signing"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/signing"
|
||||||
dbTest "github.com/prysmaticlabs/prysm/v5/beacon-chain/db/testing"
|
dbTest "github.com/OffchainLabs/prysm/v6/beacon-chain/db/testing"
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/util"
|
"github.com/OffchainLabs/prysm/v6/testing/util"
|
||||||
"github.com/prysmaticlabs/prysm/v5/time/slots"
|
"github.com/OffchainLabs/prysm/v6/time/slots"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestService_HeadSyncCommitteeIndices(t *testing.T) {
|
func TestService_HeadSyncCommitteeIndices(t *testing.T) {
|
||||||
|
|||||||
@@ -7,21 +7,21 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
mock "github.com/prysmaticlabs/prysm/v5/beacon-chain/blockchain/testing"
|
mock "github.com/OffchainLabs/prysm/v6/beacon-chain/blockchain/testing"
|
||||||
testDB "github.com/prysmaticlabs/prysm/v5/beacon-chain/db/testing"
|
testDB "github.com/OffchainLabs/prysm/v6/beacon-chain/db/testing"
|
||||||
doublylinkedtree "github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice/doubly-linked-tree"
|
doublylinkedtree "github.com/OffchainLabs/prysm/v6/beacon-chain/forkchoice/doubly-linked-tree"
|
||||||
forkchoicetypes "github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice/types"
|
forkchoicetypes "github.com/OffchainLabs/prysm/v6/beacon-chain/forkchoice/types"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/operations/blstoexec"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/operations/blstoexec"
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
ethpbv1 "github.com/prysmaticlabs/prysm/v5/proto/eth/v1"
|
ethpbv1 "github.com/OffchainLabs/prysm/v6/proto/eth/v1"
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/assert"
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/util"
|
"github.com/OffchainLabs/prysm/v6/testing/util"
|
||||||
"github.com/prysmaticlabs/prysm/v5/time/slots"
|
"github.com/OffchainLabs/prysm/v6/time/slots"
|
||||||
logTest "github.com/sirupsen/logrus/hooks/test"
|
logTest "github.com/sirupsen/logrus/hooks/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package blockchain
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// This saves a beacon block to the initial sync blocks cache. It rate limits how many blocks
|
// This saves a beacon block to the initial sync blocks cache. It rate limits how many blocks
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
testDB "github.com/prysmaticlabs/prysm/v5/beacon-chain/db/testing"
|
testDB "github.com/OffchainLabs/prysm/v6/beacon-chain/db/testing"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/util"
|
"github.com/OffchainLabs/prysm/v6/testing/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestService_getBlock(t *testing.T) {
|
func TestService_getBlock(t *testing.T) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package blockchain
|
package blockchain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ go_library(
|
|||||||
"validation.go",
|
"validation.go",
|
||||||
],
|
],
|
||||||
embedsrcs = ["trusted_setup.json"],
|
embedsrcs = ["trusted_setup.json"],
|
||||||
importpath = "github.com/prysmaticlabs/prysm/v5/beacon-chain/blockchain/kzg",
|
importpath = "github.com/OffchainLabs/prysm/v6/beacon-chain/blockchain/kzg",
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//consensus-types/blocks:go_default_library",
|
"//consensus-types/blocks:go_default_library",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package kzg
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestStart(t *testing.T) {
|
func TestStart(t *testing.T) {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package kzg
|
package kzg
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
GoKZG "github.com/crate-crypto/go-kzg-4844"
|
GoKZG "github.com/crate-crypto/go-kzg-4844"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Verify performs single or batch verification of commitments depending on the number of given BlobSidecars.
|
// Verify performs single or batch verification of commitments depending on the number of given BlobSidecars.
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ package kzg
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/testing/util"
|
||||||
GoKZG "github.com/crate-crypto/go-kzg-4844"
|
GoKZG "github.com/crate-crypto/go-kzg-4844"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/util"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func GenerateCommitmentAndProof(blob GoKZG.Blob) (GoKZG.KZGCommitment, GoKZG.KZGProof, error) {
|
func GenerateCommitmentAndProof(blob GoKZG.Blob) (GoKZG.KZGCommitment, GoKZG.KZGProof, error) {
|
||||||
|
|||||||
@@ -5,16 +5,16 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
consensus_types "github.com/OffchainLabs/prysm/v6/consensus-types"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/runtime/version"
|
||||||
|
prysmTime "github.com/OffchainLabs/prysm/v6/time"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/time/slots"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
consensus_types "github.com/prysmaticlabs/prysm/v5/consensus-types"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
||||||
prysmTime "github.com/prysmaticlabs/prysm/v5/time"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/time/slots"
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ package blockchain
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
enginev1 "github.com/OffchainLabs/prysm/v6/proto/engine/v1"
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
logTest "github.com/sirupsen/logrus/hooks/test"
|
logTest "github.com/sirupsen/logrus/hooks/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,18 +3,18 @@ package blockchain
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/altair"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/core/epoch/precompute"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/runtime/version"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/altair"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/epoch/precompute"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
eth "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
eth "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
"github.com/OffchainLabs/prysm/v6/testing/require"
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/util"
|
"github.com/OffchainLabs/prysm/v6/testing/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestReportEpochMetrics_BadHeadState(t *testing.T) {
|
func TestReportEpochMetrics_BadHeadState(t *testing.T) {
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ package blockchain
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
mock "github.com/prysmaticlabs/prysm/v5/beacon-chain/blockchain/testing"
|
mock "github.com/OffchainLabs/prysm/v6/beacon-chain/blockchain/testing"
|
||||||
testDB "github.com/prysmaticlabs/prysm/v5/beacon-chain/db/testing"
|
testDB "github.com/OffchainLabs/prysm/v6/beacon-chain/db/testing"
|
||||||
doublylinkedtree "github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice/doubly-linked-tree"
|
doublylinkedtree "github.com/OffchainLabs/prysm/v6/beacon-chain/forkchoice/doubly-linked-tree"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/startup"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/startup"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state/stategen"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state/stategen"
|
||||||
)
|
)
|
||||||
|
|
||||||
func testServiceOptsWithDB(t *testing.T) []Option {
|
func testServiceOptsWithDB(t *testing.T) []Option {
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
package blockchain
|
package blockchain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/prysmaticlabs/prysm/v5/async/event"
|
"github.com/OffchainLabs/prysm/v6/async/event"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/cache"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/cache"
|
||||||
statefeed "github.com/prysmaticlabs/prysm/v5/beacon-chain/core/feed/state"
|
statefeed "github.com/OffchainLabs/prysm/v6/beacon-chain/core/feed/state"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/db"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/db"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/db/filesystem"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/db/filesystem"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/execution"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/execution"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/forkchoice"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/operations/attestations"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/operations/attestations"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/operations/blstoexec"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/operations/blstoexec"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/operations/slashings"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/operations/slashings"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/operations/voluntaryexits"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/operations/voluntaryexits"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/p2p"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/p2p"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/startup"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/startup"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state"
|
||||||
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state/stategen"
|
"github.com/OffchainLabs/prysm/v6/beacon-chain/state/stategen"
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
ethpb "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Option func(s *Service) error
|
type Option func(s *Service) error
|
||||||
|
|||||||
@@ -6,17 +6,17 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/interfaces"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/primitives"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/encoding/bytesutil"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/runtime/version"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/time/slots"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/holiman/uint256"
|
"github.com/holiman/uint256"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/time/slots"
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,16 +5,16 @@ import (
|
|||||||
"math/big"
|
"math/big"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
mocks "github.com/OffchainLabs/prysm/v6/beacon-chain/execution/testing"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
||||||
|
"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/testing/require"
|
||||||
|
"github.com/OffchainLabs/prysm/v6/testing/util"
|
||||||
gethtypes "github.com/ethereum/go-ethereum/core/types"
|
gethtypes "github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/holiman/uint256"
|
"github.com/holiman/uint256"
|
||||||
mocks "github.com/prysmaticlabs/prysm/v5/beacon-chain/execution/testing"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
|
|
||||||
enginev1 "github.com/prysmaticlabs/prysm/v5/proto/engine/v1"
|
|
||||||
ethpb "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/require"
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/testing/util"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_validTerminalPowBlock(t *testing.T) {
|
func Test_validTerminalPowBlock(t *testing.T) {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user