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
4 changes: 2 additions & 2 deletions config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Some fields are optional and can be omitted, in which case the default value, if present, will be used.

# Chain spec ID. Supported values:
# A network ID. Supported values: Mainnet, Holesky, Sepolia, Helder, Hoodi. Lower case values e.g. "mainnet" are also accepted
# A network ID. Supported values: Mainnet, Holesky, Sepolia, Hoodi. Lower case values e.g. "mainnet" are also accepted
# A custom object, e.g., chain = { genesis_time_secs = 1695902400, path = "/path/to/spec.json" }, with a path to a chain spec file, either in .json format (e.g., as returned by the beacon endpoint /eth/v1/config/spec), or in .yml format (see examples in tests/data).
# A custom object, e.g., chain = { genesis_time_secs = 1695902400, slot_time_secs = 12, genesis_fork_version = "0x01017000" }.
# A custom object, e.g., chain = { genesis_time_secs = 1695902400, slot_time_secs = 12, genesis_fork_version = "0x01017000", chain_id = 17000 }.
chain = "Holesky"

# Configuration for the PBS module
Expand Down
5 changes: 4 additions & 1 deletion crates/common/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl CommitBoostConfig {
let chain = match helper_config.chain {
ChainLoader::Path { path, genesis_time_secs } => {
// check if the file path is overridden by env var
let (slot_time_secs, genesis_fork_version, fulu_fork_slot) =
let (slot_time_secs, genesis_fork_version, fulu_fork_slot, chain_id) =
if let Some(path) = load_optional_env_var(CHAIN_SPEC_ENV) {
load_chain_from_file(path.parse()?)?
} else {
Expand All @@ -79,6 +79,7 @@ impl CommitBoostConfig {
slot_time_secs,
genesis_fork_version,
fulu_fork_slot,
chain_id,
}
}
ChainLoader::Known(known) => Chain::from(known),
Expand All @@ -87,13 +88,15 @@ impl CommitBoostConfig {
slot_time_secs,
genesis_fork_version,
fulu_fork_slot,
chain_id,
} => {
let genesis_fork_version: ForkVersion = genesis_fork_version.as_ref().try_into()?;
Chain::Custom {
genesis_time_secs,
slot_time_secs,
genesis_fork_version,
fulu_fork_slot,
chain_id,
}
}
};
Expand Down
4 changes: 0 additions & 4 deletions crates/common/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ mod tests {
compute_domain(Chain::Sepolia, APPLICATION_BUILDER_DOMAIN),
Chain::Sepolia.builder_domain()
);
assert_eq!(
compute_domain(Chain::Helder, APPLICATION_BUILDER_DOMAIN),
Chain::Helder.builder_domain()
);
assert_eq!(
compute_domain(Chain::Hoodi, APPLICATION_BUILDER_DOMAIN),
Chain::Hoodi.builder_domain()
Expand Down
Loading