refactor(stages): previous_stage -> target in ExecInput (#3030)

This commit is contained in:
Alexey Shekhirin
2023-06-08 16:55:06 +04:00
committed by GitHub
parent 7cc69d52c6
commit 529c8e003c
25 changed files with 96 additions and 147 deletions

View File

@ -5,7 +5,7 @@ use crate::{
Case, Error, Suite,
};
use reth_db::mdbx::test_utils::create_test_rw_db;
use reth_primitives::{stage::StageId, BlockBody, SealedBlock};
use reth_primitives::{BlockBody, SealedBlock};
use reth_provider::Transaction;
use reth_stages::{stages::ExecutionStage, ExecInput, Stage};
use std::{collections::BTreeMap, ffi::OsStr, fs, ops::Deref, path::Path, sync::Arc};
@ -104,11 +104,7 @@ impl Case for BlockchainTestCase {
let _ = stage
.execute(
&mut transaction,
ExecInput {
previous_stage: last_block
.map(|b| (StageId::Other("Dummy"), b)),
checkpoint: None,
},
ExecInput { target: last_block, checkpoint: None },
)
.await;
});