chore: rename StageDB to Transaction (#470)

* chore: rename StageDB to Transaction

* chore: cargo fmt

* chore: add note about potentially removing this in the future
This commit is contained in:
Georgios Konstantopoulos
2022-12-15 18:14:14 +02:00
committed by GitHub
parent c10bdb5830
commit 9cd5824f35
13 changed files with 69 additions and 66 deletions

View File

@ -11,7 +11,7 @@ use reth_primitives::{
keccak256, Account as RethAccount, BigEndianHash, BlockLocked, SealedHeader, StorageEntry, H256,
};
use reth_rlp::Decodable;
use reth_stages::{stages::execution::ExecutionStage, ExecInput, Stage, StageDB};
use reth_stages::{stages::execution::ExecutionStage, ExecInput, Stage, Transaction};
use std::{
ffi::OsStr,
path::{Path, PathBuf},
@ -145,7 +145,7 @@ pub async fn run_test(path: PathBuf) -> eyre::Result<()> {
// Call execution stage
let input = ExecInput::default();
stage.execute(&mut StageDB::new(db.as_ref())?, input).await?;
stage.execute(&mut Transaction::new(db.as_ref())?, input).await?;
// Validate post state
//for post in