mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(exex): backfill executor (#9123)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user