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 0548686 commit 2f0b399
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/stages/stages/benches/setup/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub(crate) type StageRange = (ExecInput, UnwindInput);

pub(crate) fn stage_unwind<
S: Clone
+ Stage<DatabaseProvider<<TempDatabase<DatabaseEnv> as Database>::TXMut, MockNodeTypesWithDB>>,
+ Stage<DatabaseProvider<<TempDatabase<DatabaseEnv> as Database>::TXMut, MockNodeTypesWithDB>>,
>(
stage: S,
db: &TestStageDB,
Expand Down Expand Up @@ -66,7 +66,7 @@ pub(crate) fn stage_unwind<
pub(crate) fn unwind_hashes<S>(stage: S, db: &TestStageDB, range: StageRange)
where
S: Clone
+ Stage<DatabaseProvider<<TempDatabase<DatabaseEnv> as Database>::TXMut, MockNodeTypesWithDB>>,
+ Stage<DatabaseProvider<<TempDatabase<DatabaseEnv> as Database>::TXMut, MockNodeTypesWithDB>>,
{
let (input, unwind) = range;

Expand Down Expand Up @@ -122,8 +122,8 @@ pub(crate) fn txs_testdata(num_blocks: u64) -> TestStageDB {
random_eoa_accounts(&mut rng, n_eoa),
random_contract_account_range(&mut rng, &mut (0..n_contract)),
])
.into_iter()
.collect();
.into_iter()
.collect();

let mut blocks = random_block_range(
&mut rng,
Expand Down Expand Up @@ -195,8 +195,8 @@ pub(crate) fn txs_testdata(num_blocks: u64) -> TestStageDB {
let (head, _) = tx.cursor_read::<tables::Headers>()?.first()?.unwrap_or_default();
Ok(tx.put::<tables::HeaderTerminalDifficulties>(head, U256::from(0).into())?)
})
.unwrap();
.unwrap();
}

db
}
}

0 comments on commit 2f0b399

Please sign in to comment.