Skip to content

Commit 0a3910d

Browse files
committed
bump lighthouse types to v8.1.3
1 parent 4c3d0f4 commit 0a3910d

8 files changed

Lines changed: 373 additions & 1038 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,18 @@ derive_more = { version = "2.0.1", features = ["deref", "display", "from", "into
4242
docker-compose-types = "0.16.0"
4343
docker-image = "0.2.1"
4444
ethereum_serde_utils = "0.7.0"
45-
ethereum_ssz = "0.9"
46-
ethereum_ssz_derive = "0.9"
45+
ethereum_ssz = "0.10"
46+
ethereum_ssz_derive = "0.10"
4747
eyre = "0.6.12"
4848
futures = "0.3.30"
4949
headers = "0.4.0"
5050
indexmap = "2.2.6"
5151
jsonwebtoken = { version = "9.3.1", default-features = false }
5252
lazy_static = "1.5.0"
53-
lh_eth2 = { package = "eth2", git = "https://github.com/sigp/lighthouse", tag = "v8.0.0-rc.0" }
54-
lh_eth2_keystore = { package = "eth2_keystore", git = "https://github.com/sigp/lighthouse", tag = "v8.0.0-rc.0" }
55-
lh_types = { package = "types", git = "https://github.com/sigp/lighthouse", tag = "v8.0.0-rc.0" }
53+
lh_eth2 = { package = "eth2", git = "https://github.com/sigp/lighthouse", tag = "v8.1.3", features = ["events"] }
54+
lh_eth2_keystore = { package = "eth2_keystore", git = "https://github.com/sigp/lighthouse", tag = "v8.1.3" }
55+
lh_bls = { package = "bls", git = "https://github.com/sigp/lighthouse", tag = "v8.1.3" }
56+
lh_types = { package = "types", git = "https://github.com/sigp/lighthouse", tag = "v8.1.3" }
5657
notify = "8.2.0"
5758
parking_lot = "0.12.3"
5859
pbkdf2 = "0.12.2"
@@ -79,8 +80,8 @@ tracing = "0.1.40"
7980
tracing-appender = "0.2.3"
8081
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json"] }
8182
tracing-test = { version = "0.2.5", features = ["no-env-filter"] }
82-
tree_hash = "^0.10"
83-
tree_hash_derive = "0.9"
83+
tree_hash = "0.12"
84+
tree_hash_derive = "0.12"
8485
typenum = "1.17.0"
8586
unicode-normalization = "0.1.24"
8687
url = { version = "2.5.0", features = ["serde"] }

crates/common/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ eyre.workspace = true
2727
futures.workspace = true
2828
jsonwebtoken.workspace = true
2929
lazy_static.workspace = true
30+
lh_bls.workspace = true
3031
lh_eth2.workspace = true
3132
lh_eth2_keystore.workspace = true
3233
lh_types.workspace = true

crates/common/src/config/mux.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,17 @@ pub struct RuntimeMuxConfig {
4141
pub relays: Vec<RelayClient>,
4242
}
4343

44+
/// Lookup tables produced by [`PbsMuxes::validate_and_fill`]:
45+
/// (pubkey → mux, registry-loader → mux).
46+
pub type MuxLookups =
47+
(HashMap<BlsPublicKey, RuntimeMuxConfig>, HashMap<MuxKeysLoader, RuntimeMuxConfig>);
48+
4449
impl PbsMuxes {
4550
pub async fn validate_and_fill(
4651
self,
4752
chain: Chain,
4853
default_pbs: &PbsConfig,
49-
) -> eyre::Result<(
50-
HashMap<BlsPublicKey, RuntimeMuxConfig>,
51-
HashMap<MuxKeysLoader, RuntimeMuxConfig>,
52-
)> {
54+
) -> eyre::Result<MuxLookups> {
5355
let http_timeout = Duration::from_secs(default_pbs.http_timeout_seconds);
5456

5557
let mut muxes = self.muxes;

crates/common/src/config/pbs.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use super::{
2323
use crate::{
2424
commit::client::SignerClient,
2525
config::{
26-
CONFIG_ENV, MODULE_JWT_ENV, MuxKeysLoader, PBS_IMAGE_DEFAULT, PBS_SERVICE_NAME, PbsMuxes,
27-
SIGNER_URL_ENV, load_env_var, load_file_from_env,
26+
CONFIG_ENV, MODULE_JWT_ENV, MuxKeysLoader, MuxLookups, PBS_IMAGE_DEFAULT, PBS_SERVICE_NAME,
27+
PbsMuxes, SIGNER_URL_ENV, load_env_var, load_file_from_env,
2828
},
2929
pbs::{
3030
DEFAULT_PBS_PORT, DEFAULT_REGISTRY_REFRESH_SECONDS, DefaultTimeout, LATE_IN_SLOT_TIME_MS,
@@ -290,9 +290,9 @@ pub async fn load_pbs_config(config_path: Option<PathBuf>) -> Result<(PbsModuleC
290290
let mut all_relays = HashMap::with_capacity(relay_clients.len());
291291

292292
// Validate the muxes and build the lookup tables
293-
let (mux_lookup, registry_muxes) = match config.muxes {
293+
let (mux_lookup, registry_muxes): (Option<_>, Option<_>) = match config.muxes {
294294
Some(muxes) => {
295-
let (mux_lookup, registry_muxes) =
295+
let (mux_lookup, registry_muxes): MuxLookups =
296296
muxes.validate_and_fill(config.chain, &config.pbs.pbs_config).await?;
297297
(Some(mux_lookup), Some(registry_muxes))
298298
}
@@ -371,9 +371,9 @@ pub async fn load_pbs_custom_config<T: DeserializeOwned>() -> Result<(PbsModuleC
371371
let mut all_relays = HashMap::with_capacity(relay_clients.len());
372372

373373
// Validate the muxes and build the lookup tables
374-
let (mux_lookup, registry_muxes) = match cb_config.muxes {
374+
let (mux_lookup, registry_muxes): (Option<_>, Option<_>) = match cb_config.muxes {
375375
Some(muxes) => {
376-
let (mux_lookup, registry_muxes) = muxes
376+
let (mux_lookup, registry_muxes): MuxLookups = muxes
377377
.validate_and_fill(cb_config.chain, &cb_config.pbs.static_config.pbs_config)
378378
.await?;
379379
(Some(mux_lookup), Some(registry_muxes))

crates/common/src/pbs/types/mod.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
use alloy::primitives::{B256, U256, b256};
2+
use lh_eth2::ForkVersionedResponse;
3+
pub use lh_types::ForkName;
24
use lh_types::{BlindedPayload, ExecPayload, MainnetEthSpec};
3-
pub use lh_types::{ForkName, ForkVersionedResponse};
45
use serde::{Deserialize, Serialize};
56

67
use crate::types::BlsPublicKey;
78

89
pub const EMPTY_TX_ROOT_HASH: B256 =
910
b256!("7ffe241ea60187fdb0187bfa22de35d1f9bed7ab061d9401fd47e34a54fbede1");
1011

11-
pub type ExecutionRequests = lh_types::execution_requests::ExecutionRequests<MainnetEthSpec>;
12+
pub type ExecutionRequests = lh_types::ExecutionRequests<MainnetEthSpec>;
1213

1314
/// Request object of POST `/eth/v1/builder/blinded_blocks`
14-
pub type SignedBlindedBeaconBlock =
15-
lh_types::signed_beacon_block::SignedBlindedBeaconBlock<MainnetEthSpec>;
15+
pub type SignedBlindedBeaconBlock = lh_types::SignedBlindedBeaconBlock<MainnetEthSpec>;
1616
pub type BlindedBeaconBlock<'a> =
17-
lh_types::beacon_block::BeaconBlockRef<'a, MainnetEthSpec, BlindedPayload<MainnetEthSpec>>;
17+
lh_types::BeaconBlockRef<'a, MainnetEthSpec, BlindedPayload<MainnetEthSpec>>;
1818
pub type BlindedBeaconBlockElectra =
19-
lh_types::beacon_block::BeaconBlockElectra<MainnetEthSpec, BlindedPayload<MainnetEthSpec>>;
19+
lh_types::BeaconBlockElectra<MainnetEthSpec, BlindedPayload<MainnetEthSpec>>;
2020
pub type BlindedBeaconBlockFulu =
21-
lh_types::beacon_block::BeaconBlockFulu<MainnetEthSpec, BlindedPayload<MainnetEthSpec>>;
21+
lh_types::BeaconBlockFulu<MainnetEthSpec, BlindedPayload<MainnetEthSpec>>;
2222

2323
pub type BlobsBundle = lh_eth2::types::BlobsBundle<MainnetEthSpec>;
2424
pub type PayloadAndBlobs = lh_eth2::types::ExecutionPayloadAndBlobs<MainnetEthSpec>;
2525
/// Response object of POST `/eth/v1/builder/blinded_blocks`
26-
pub type SubmitBlindedBlockResponse = lh_types::ForkVersionedResponse<PayloadAndBlobs>;
26+
pub type SubmitBlindedBlockResponse = ForkVersionedResponse<PayloadAndBlobs>;
2727

2828
pub type ExecutionPayloadHeader = lh_types::ExecutionPayloadHeader<MainnetEthSpec>;
2929
pub type ExecutionPayloadHeaderElectra = lh_types::ExecutionPayloadHeaderElectra<MainnetEthSpec>;
@@ -32,15 +32,15 @@ pub type ExecutionPayloadHeaderRef<'a> = lh_types::ExecutionPayloadHeaderRef<'a,
3232
pub type ExecutionPayload = lh_types::ExecutionPayload<MainnetEthSpec>;
3333
pub type ExecutionPayloadElectra = lh_types::ExecutionPayloadElectra<MainnetEthSpec>;
3434
pub type ExecutionPayloadFulu = lh_types::ExecutionPayloadFulu<MainnetEthSpec>;
35-
pub type SignedBuilderBid = lh_types::builder_bid::SignedBuilderBid<MainnetEthSpec>;
36-
pub type BuilderBid = lh_types::builder_bid::BuilderBid<MainnetEthSpec>;
37-
pub type BuilderBidElectra = lh_types::builder_bid::BuilderBidElectra<MainnetEthSpec>;
35+
pub type SignedBuilderBid = lh_types::SignedBuilderBid<MainnetEthSpec>;
36+
pub type BuilderBid = lh_types::BuilderBid<MainnetEthSpec>;
37+
pub type BuilderBidElectra = lh_types::BuilderBidElectra<MainnetEthSpec>;
3838

3939
/// Response object of GET
4040
/// `/eth/v1/builder/header/{slot}/{parent_hash}/{pubkey}`
41-
pub type GetHeaderResponse = lh_types::ForkVersionedResponse<SignedBuilderBid>;
41+
pub type GetHeaderResponse = ForkVersionedResponse<SignedBuilderBid>;
4242

43-
pub type KzgCommitments = lh_types::beacon_block_body::KzgCommitments<MainnetEthSpec>;
43+
pub type KzgCommitments = lh_types::KzgCommitments<MainnetEthSpec>;
4444

4545
/// Response params of GET
4646
/// `/eth/v1/builder/header/{slot}/{parent_hash}/{pubkey}`

crates/common/src/types.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ use serde::{Deserialize, Serialize};
88

99
use crate::{constants::APPLICATION_BUILDER_DOMAIN, signature::compute_domain};
1010

11-
pub type BlsPublicKeyBytes = lh_types::PublicKeyBytes;
12-
pub type BlsPublicKey = lh_types::PublicKey;
13-
pub type BlsSignature = lh_types::Signature;
14-
pub type BlsSecretKey = lh_types::SecretKey;
11+
pub type BlsPublicKeyBytes = lh_bls::PublicKeyBytes;
12+
pub type BlsPublicKey = lh_bls::PublicKey;
13+
pub type BlsSignature = lh_bls::Signature;
14+
pub type BlsSecretKey = lh_bls::SecretKey;
1515

1616
#[derive(Clone, Debug, Display, PartialEq, Eq, Hash, Deref, From, Into, Serialize, Deserialize)]
1717
#[into(owned, ref, ref_mut)]

crates/pbs/src/mev_boost/get_header.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,7 @@ async fn send_one_get_header(
395395
match &get_header_response.data.message.header() {
396396
ExecutionPayloadHeaderRef::Bellatrix(_) |
397397
ExecutionPayloadHeaderRef::Capella(_) |
398-
ExecutionPayloadHeaderRef::Deneb(_) |
399-
ExecutionPayloadHeaderRef::Gloas(_) => {
398+
ExecutionPayloadHeaderRef::Deneb(_) => {
400399
return Err(PbsError::Validation(ValidationError::UnsupportedFork))
401400
}
402401
ExecutionPayloadHeaderRef::Electra(res) => {

0 commit comments

Comments
 (0)