From 2f0b39924ec2f5f7349205640f28156b89154b97 Mon Sep 17 00:00:00 2001 From: Khanh Hoa Date: Tue, 24 Dec 2024 07:59:59 +0700 Subject: [PATCH] bet --- crates/stages/stages/benches/setup/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/stages/stages/benches/setup/mod.rs b/crates/stages/stages/benches/setup/mod.rs index 5bf9a993e862..c82997515817 100644 --- a/crates/stages/stages/benches/setup/mod.rs +++ b/crates/stages/stages/benches/setup/mod.rs @@ -33,7 +33,7 @@ pub(crate) type StageRange = (ExecInput, UnwindInput); pub(crate) fn stage_unwind< S: Clone - + Stage as Database>::TXMut, MockNodeTypesWithDB>>, + + Stage as Database>::TXMut, MockNodeTypesWithDB>>, >( stage: S, db: &TestStageDB, @@ -66,7 +66,7 @@ pub(crate) fn stage_unwind< pub(crate) fn unwind_hashes(stage: S, db: &TestStageDB, range: StageRange) where S: Clone - + Stage as Database>::TXMut, MockNodeTypesWithDB>>, + + Stage as Database>::TXMut, MockNodeTypesWithDB>>, { let (input, unwind) = range; @@ -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, @@ -195,8 +195,8 @@ pub(crate) fn txs_testdata(num_blocks: u64) -> TestStageDB { let (head, _) = tx.cursor_read::()?.first()?.unwrap_or_default(); Ok(tx.put::(head, U256::from(0).into())?) }) - .unwrap(); + .unwrap(); } db -} +} \ No newline at end of file