Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MdTeach committed Dec 11, 2024
1 parent f17e918 commit 2e0f72e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/prover-client/src/proving_ops/el_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8>;
type Params = (u64, u64);
Expand Down
2 changes: 1 addition & 1 deletion crates/proof-impl/evm-ee-stf/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self>
where
Self: Sized;
Expand Down
2 changes: 1 addition & 1 deletion crates/proof-impl/evm-ee-stf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<_>>();
Expand Down
6 changes: 5 additions & 1 deletion crates/reth/db/src/rocksdb/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ impl<DB: SchemaDBOperations> WitnessProvider for WitnessDB<DB> {
}

impl<DB: SchemaDBOperations> WitnessStore for WitnessDB<DB> {
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
Expand Down
8 changes: 4 additions & 4 deletions crates/test-utils/src/evm_ee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2e0f72e

Please sign in to comment.