Skip to content

Commit

Permalink
bet
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 committed Dec 24, 2024
1 parent 9c62bfb commit 0548686
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions crates/stages/stages/benches/setup/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ use reth_stages::{
test_utils::{StorageKind, TestStageDB},
};
use reth_testing_utils::generators::{
random_block_range, random_changeset_range, random_contract_account_range, random_eoa_accounts,
BlockRangeParams,
self, random_block_range, random_changeset_range, random_contract_account_range,
random_eoa_accounts, BlockRangeParams,
};
use reth_trie::StateRoot;
use std::{collections::BTreeMap, fs, path::Path};
Expand All @@ -27,7 +27,6 @@ mod constants;
mod account_hashing;
pub use account_hashing::*;
use reth_stages_api::{ExecInput, Stage, UnwindInput};
use reth_testing_utils::generators;
use reth_trie_db::DatabaseStateRoot;

pub(crate) type StageRange = (ExecInput, UnwindInput);
Expand All @@ -50,14 +49,14 @@ pub(crate) fn stage_unwind<

// Clear previous run
stage
.unwind(&provider, unwind)
.map_err(|e| {
format!(
"{e}\nMake sure your test database at `{}` isn't too old and incompatible with newer stage changes.",
db.factory.db_ref().path().display()
)
})
.unwrap();
.unwind(&provider, unwind)
.map_err(|e| {
format!(
"{e}\nMake sure your test database at `{}` isn't too old and incompatible with newer stage changes.",
db.factory.db_ref().path().display()
)
})
.unwrap();

provider.commit().unwrap();
})
Expand Down

0 comments on commit 0548686

Please sign in to comment.