feat(exex): backfill executor (#9123)

This commit is contained in:
Alexey Shekhirin
2024-06-28 16:22:42 +01:00
committed by GitHub
parent 9a2cfe5a5c
commit 9129b97c5b
25 changed files with 633 additions and 140 deletions

View File

@ -14,6 +14,7 @@ workspace = true
# reth
reth-network-types = { workspace = true, features = ["serde"] }
reth-prune-types.workspace = true
reth-stages-types.workspace = true
# serde
serde.workspace = true

View File

@ -2,6 +2,7 @@
use reth_network_types::{PeersConfig, SessionsConfig};
use reth_prune_types::PruneModes;
use reth_stages_types::ExecutionStageThresholds;
use serde::{Deserialize, Deserializer, Serialize};
use std::{
ffi::OsStr,
@ -216,6 +217,17 @@ impl Default for ExecutionConfig {
}
}
impl From<ExecutionConfig> for ExecutionStageThresholds {
fn from(config: ExecutionConfig) -> Self {
Self {
max_blocks: config.max_blocks,
max_changes: config.max_changes,
max_cumulative_gas: config.max_cumulative_gas,
max_duration: config.max_duration,
}
}
}
/// Hashing stage configuration.
#[derive(Debug, Clone, Copy, Deserialize, PartialEq, Eq, Serialize)]
#[serde(default)]