Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ethereum_serde_utils.workspace = true
ethereum_ssz.workspace = true
ethereum_ssz_derive.workspace = true
eyre.workspace = true
flate2.workspace = true
flux.workspace = true
flux-utils.workspace = true
futures.workspace = true
Expand All @@ -41,6 +42,7 @@ serde_json.workspace = true
serde_yaml.workspace = true
sha2.workspace = true
ssz_types.workspace = true
strum.workspace = true
teloxide.workspace = true
thiserror.workspace = true
tokio.workspace = true
Expand All @@ -52,3 +54,4 @@ tree_hash.workspace = true
tree_hash_derive.workspace = true
url.workspace = true
uuid.workspace = true
zstd.workspace = true
6 changes: 4 additions & 2 deletions crates/common/src/api/builder_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ use tree_hash_derive::TreeHash;

use crate::{BuilderValidatorPreferences, api::proposer_api::ValidatorRegistrationInfo};

pub const MAX_PAYLOAD_LENGTH: usize = 1024 * 1024 * 20; // 20MB

#[derive(Debug, Default, Clone, serde::Serialize, serde::Deserialize)]
pub struct BuilderGetValidatorsResponseEntry {
pub slot: Slot,
Expand Down Expand Up @@ -81,13 +83,13 @@ impl<'a> From<&'a InclusionListWithKey> for (&'a InclusionListWithMetadata, &'a
}
}

#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq, Encode, Decode)]
pub struct InclusionListTxWithMetadata {
pub hash: B256,
pub bytes: Transaction,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq, Encode, Decode)]
pub struct InclusionListWithMetadata {
pub txs: Vec<InclusionListTxWithMetadata>,
}
Expand Down
6 changes: 6 additions & 0 deletions crates/common/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ impl RelayConfig {
reg_workers: vec![],
tcp_bid_submissions_tile: 2,
decoder: vec![4],
simulator: 5,
},
gossip_payload_on_header: false,
api_port: 4040,
Expand Down Expand Up @@ -151,6 +152,8 @@ pub struct CoresConfig {
pub reg_workers: Vec<usize>,
pub tcp_bid_submissions_tile: usize,
pub decoder: Vec<usize>,
#[serde(default)]
pub simulator: usize,
}

impl Default for WebsiteConfig {
Expand Down Expand Up @@ -258,6 +261,9 @@ pub struct SimulatorConfig {
/// roughly number of cores on simulator
#[serde(default = "default_usize::<32>")]
pub max_concurrent_tasks: usize,
/// If set, use the SSZ binary endpoint at this URL instead of JSON-RPC
#[serde(default)]
pub ssz_url: Option<String>,
}

fn default_namespace() -> String {
Expand Down
Loading
Loading