feat(stages): remove changeset commit threshold in Execution (#3050)

This commit is contained in:
Alexey Shekhirin
2023-06-08 13:34:25 +04:00
committed by GitHub
parent 1075995efc
commit 7cc69d52c6
8 changed files with 6 additions and 62 deletions

View File

@ -174,7 +174,6 @@ impl ImportCommand {
ExecutionStageThresholds {
max_blocks: config.stages.execution.max_blocks,
max_changes: config.stages.execution.max_changes,
max_changesets: config.stages.execution.max_changesets,
},
)),
)

View File

@ -143,11 +143,7 @@ impl Command {
})
.set(ExecutionStage::new(
factory,
ExecutionStageThresholds {
max_blocks: None,
max_changes: None,
max_changesets: None,
},
ExecutionStageThresholds { max_blocks: None, max_changes: None },
)),
)
.build(db);

View File

@ -91,11 +91,7 @@ impl Command {
let factory = reth_revm::Factory::new(self.chain.clone());
let mut execution_stage = ExecutionStage::new(
factory,
ExecutionStageThresholds {
max_blocks: Some(1),
max_changes: None,
max_changesets: None,
},
ExecutionStageThresholds { max_blocks: Some(1), max_changes: None },
);
let mut account_hashing_stage = AccountHashingStage::default();

View File

@ -691,7 +691,6 @@ impl Command {
ExecutionStageThresholds {
max_blocks: stage_conf.execution.max_blocks,
max_changes: stage_conf.execution.max_changes,
max_changesets: stage_conf.execution.max_changesets,
},
)),
)

View File

@ -71,11 +71,7 @@ async fn unwind_and_copy<DB: Database>(
// Bring Plainstate to TO (hashing stage execution requires it)
let mut exec_stage = ExecutionStage::new(
reth_revm::Factory::new(Arc::new(MAINNET.clone())),
ExecutionStageThresholds {
max_blocks: Some(u64::MAX),
max_changes: None,
max_changesets: None,
},
ExecutionStageThresholds { max_blocks: Some(u64::MAX), max_changes: None },
);
exec_stage

View File

@ -190,7 +190,6 @@ impl Command {
ExecutionStageThresholds {
max_blocks: Some(batch_size),
max_changes: None,
max_changesets: None,
},
)),
None,