Skip to content

Commit c74421f

Browse files
authored
feat(pbs): electra support (#266)
1 parent 66ca12f commit c74421f

32 files changed

+1878
-777
lines changed

Cargo.lock

Lines changed: 18 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ alloy = { version = "0.8.0", features = [
3737
"getrandom",
3838
"providers",
3939
] }
40-
ssz_types = "0.8"
40+
ssz_types = "0.10"
4141
ethereum_serde_utils = "0.7.0"
4242

4343
# networking
@@ -60,6 +60,8 @@ serde_json = "1.0.117"
6060
serde_yaml = "0.9.33"
6161
base64 = "0.22.1"
6262
unicode-normalization = "0.1.24"
63+
ethereum_ssz = "0.8"
64+
ethereum_ssz_derive = "0.8"
6365

6466
# telemetry
6567
tracing = "0.1.40"
@@ -69,8 +71,8 @@ prometheus = "0.13.4"
6971

7072
# crypto
7173
blst = "0.3.11"
72-
tree_hash = "0.8"
73-
tree_hash_derive = "0.8"
74+
tree_hash = "0.9"
75+
tree_hash_derive = "0.9"
7476
eth2_keystore = { git = "https://github.com/sigp/lighthouse", rev = "9e12c21f268c80a3f002ae0ca27477f9f512eb6f" }
7577
k256 = "0.13"
7678
aes = "0.8"

crates/common/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ toml.workspace = true
2424
serde.workspace = true
2525
serde_json.workspace = true
2626
serde_yaml.workspace = true
27+
ethereum_ssz.workspace = true
28+
ethereum_ssz_derive.workspace = true
2729

2830
# telemetry
2931
tracing.workspace = true

crates/common/src/pbs/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,7 @@ pub enum ValidationError {
8383

8484
#[error("invalid gas limit: parent: {parent} header: {header}")]
8585
GasLimit { parent: u64, header: u64 },
86+
87+
#[error("payload mismatch: request: {request} response: {response}")]
88+
PayloadVersionMismatch { request: &'static str, response: &'static str },
8689
}

0 commit comments

Comments
 (0)