Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
debjit-bw committed Oct 10, 2024
1 parent cb51a13 commit 50c397b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 24 deletions.
1 change: 0 additions & 1 deletion src/evm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ impl ConfigureEvmEnv for GnosisEvmConfig {
fn fill_cfg_env(
&self,
cfg_env: &mut CfgEnvWithHandlerCfg,
// chain_spec: &ChainSpec,
header: &Header,
total_difficulty: U256,
) {
Expand Down
3 changes: 0 additions & 3 deletions src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ where
GnosisBatchExecutor {
executor,
batch_record: BlockBatchRecord::default(),
// stats: BlockExecutorStats::default(),
}
}
}
Expand Down Expand Up @@ -174,7 +173,6 @@ where
self.executor.evm_config.fill_cfg_and_block_env(
&mut cfg,
&mut block_env,
// self.chain_spec(),
header,
total_difficulty,
);
Expand Down Expand Up @@ -268,7 +266,6 @@ where
self.executor.evm_config.fill_cfg_and_block_env(
&mut cfg,
&mut block_env,
// self.chain_spec(),
&block.header,
total_difficulty,
);
Expand Down
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ impl GnosisNode {
Node: FullNodeTypes<
Types: NodeTypesWithEngine<Engine = EthEngineTypes, ChainSpec = ChainSpec>,
>,
// EthereumEngineValidatorBuilder: EngineValidatorBuilder<Node>
{
EthereumNode::components::<Node>()
.node_types::<Node>()
Expand All @@ -80,10 +79,6 @@ impl GnosisNode {
.executor(GnosisExecutorBuilder::default())
.consensus(GnosisConsensusBuilder::default())
.engine_validator(EthereumEngineValidatorBuilder::default())

// ComponentsBuilder::default()
// .node_types::<Node>()
// .pool(EthereumPoolBuilder::default())
}
}

Expand Down
16 changes: 1 addition & 15 deletions src/payload_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,12 @@ use crate::{evm_config::GnosisEvmConfig, execute::gnosis_post_block_system_calls
#[derive(Debug, Default, Clone)]
pub struct GnosisPayloadServiceBuilder {
// The EVM configuration to use for the payload builder.
// pub evm_config: EVM,
// block_rewards_contract: Address,
}

impl GnosisPayloadServiceBuilder {
/// Create a new instance with the given evm config.
pub const fn new() -> Self {
Self {
// block_rewards_contract,
}
Self {}
}
}

Expand Down Expand Up @@ -105,7 +101,6 @@ where
pool,
ctx.task_executor().clone(),
payload_job_config,
// ctx.chain_spec(),
payload_builder,
);
let (payload_service, payload_builder) =
Expand Down Expand Up @@ -455,15 +450,6 @@ where
};

// < GNOSIS SPECIFIC
// Compute the withdrawals root independent of how they are applied
// let withdrawals_root = if !chain_spec.is_shanghai_active_at_timestamp(attributes.timestamp) {
// None
// } else if attributes.withdrawals.is_empty() {
// Some(EMPTY_WITHDRAWALS)
// } else {
// Some(proofs::calculate_withdrawals_root(&attributes.withdrawals))
// };

gnosis_post_block_system_calls(
&chain_spec,
&evm_config,
Expand Down

0 comments on commit 50c397b

Please sign in to comment.