mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(stages): remove changeset commit threshold in Execution (#3050)
This commit is contained in:
@ -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,
|
||||
},
|
||||
)),
|
||||
)
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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,
|
||||
},
|
||||
)),
|
||||
)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -190,7 +190,6 @@ impl Command {
|
||||
ExecutionStageThresholds {
|
||||
max_blocks: Some(batch_size),
|
||||
max_changes: None,
|
||||
max_changesets: None,
|
||||
},
|
||||
)),
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user