From 2e0f72e94fbdea398ca7c274785850fb5debdef1 Mon Sep 17 00:00:00 2001 From: abishek Date: Wed, 11 Dec 2024 16:32:27 +0545 Subject: [PATCH] lint fix --- bin/prover-client/src/proving_ops/el_ops.rs | 2 +- crates/proof-impl/evm-ee-stf/src/db.rs | 2 +- crates/proof-impl/evm-ee-stf/src/lib.rs | 2 +- crates/reth/db/src/rocksdb/db.rs | 6 +++++- crates/test-utils/src/evm_ee.rs | 8 ++++---- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/bin/prover-client/src/proving_ops/el_ops.rs b/bin/prover-client/src/proving_ops/el_ops.rs index 2036258ea..0dd397389 100644 --- a/bin/prover-client/src/proving_ops/el_ops.rs +++ b/bin/prover-client/src/proving_ops/el_ops.rs @@ -29,7 +29,7 @@ impl ElOperations { #[async_trait] impl ProvingOperations for ElOperations { - /// Used serialized [`ELProofInput`] because [`ELProofInput::parent_state_trie`] contains + /// Used serialized [`ElBlockStfInput`] because [`ElBlockStfInput::parent_state_trie`] contains /// RefCell, which is not Sync or Send type Input = Vec; type Params = (u64, u64); diff --git a/crates/proof-impl/evm-ee-stf/src/db.rs b/crates/proof-impl/evm-ee-stf/src/db.rs index 50137e821..19827fca0 100644 --- a/crates/proof-impl/evm-ee-stf/src/db.rs +++ b/crates/proof-impl/evm-ee-stf/src/db.rs @@ -34,7 +34,7 @@ use crate::{ /// A helper trait to extend [`InMemoryDB`] with additional functionality. pub trait InMemoryDBHelper { - /// Create an [`InMemoryDB`] from a given [`ELProofInput`]. + /// Create an [`InMemoryDB`] from a given [`ElBlockStfInput`]. fn initialize(input: &mut ElBlockStfInput) -> Result where Self: Sized; diff --git a/crates/proof-impl/evm-ee-stf/src/lib.rs b/crates/proof-impl/evm-ee-stf/src/lib.rs index 102299f12..74ec81e26 100644 --- a/crates/proof-impl/evm-ee-stf/src/lib.rs +++ b/crates/proof-impl/evm-ee-stf/src/lib.rs @@ -70,7 +70,7 @@ pub fn process_block_transaction( let new_block_hash = B256::from(keccak(alloy_rlp::encode(block_header.clone()))); // TODO: Optimize receipt iteration by implementing bloom filters or adding hints to - // `ELProofInput`. This will allow for efficient filtering of`WithdrawalIntentEvents`. + // `ElBlockStfInput`. This will allow for efficient filtering of`WithdrawalIntentEvents`. let withdrawal_intents = collect_withdrawal_intents(receipts.into_iter().map(|el| Some(el.receipt))) .collect::>(); diff --git a/crates/reth/db/src/rocksdb/db.rs b/crates/reth/db/src/rocksdb/db.rs index c4dd68a84..8de2eb839 100644 --- a/crates/reth/db/src/rocksdb/db.rs +++ b/crates/reth/db/src/rocksdb/db.rs @@ -46,7 +46,11 @@ impl WitnessProvider for WitnessDB { } impl WitnessStore for WitnessDB { - fn put_block_witness(&self, block_hash: B256, witness: &ElBlockStfInput) -> crate::DbResult<()> { + fn put_block_witness( + &self, + block_hash: B256, + witness: &ElBlockStfInput, + ) -> crate::DbResult<()> { let serialized = bincode::serialize(witness).map_err(|err| DbError::Other(err.to_string()))?; Ok(self diff --git a/crates/test-utils/src/evm_ee.rs b/crates/test-utils/src/evm_ee.rs index 24670ba20..0ff5ea925 100644 --- a/crates/test-utils/src/evm_ee.rs +++ b/crates/test-utils/src/evm_ee.rs @@ -24,8 +24,8 @@ pub struct EvmSegment { } impl EvmSegment { - /// Initializes the EvmSegment by loading existing [`ELProofInput`] data from the specified - /// range of block heights and generating corresponding ELProofPublicParams. + /// Initializes the EvmSegment by loading existing [`ElBlockStfInput`] data from the specified + /// range of block heights and generating corresponding ElBlockStfOutput. /// /// This function reads witness data from JSON files, processes them, and stores the results /// for testing purposes of the STF proofs. @@ -57,14 +57,14 @@ impl EvmSegment { Self { inputs, outputs } } - /// Retrieves the [`ELProofInput`] associated with the given block height. + /// Retrieves the [`ElBlockStfInput`] associated with the given block height. /// /// Panics if no input is found for the specified height. pub fn get_input(&self, height: &u64) -> &ElBlockStfInput { self.inputs.get(height).expect("No input found at height") } - /// Retrieves the [`ELProofPublicParams`] associated with the given block height. + /// Retrieves the [`ElBlockStfOutput`] associated with the given block height. /// /// Panics if no output is found for the specified height. pub fn get_output(&self, height: &u64) -> &ElBlockStfOutput {