Skip to content

Commit

Permalink
chore: rename to MultiProofTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Jan 8, 2025
1 parent c144aa1 commit 15aa96f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/engine/tree/src/tree/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl<Factory> StateRootConfig<Factory> {
/// * An address, for fetching account proofs, or
/// * An address and storage slot, for fetching storage proofs
#[derive(Debug, PartialEq, Eq, Hash)]
pub enum ProofTarget {
pub enum MultiProofTarget {
/// Account proof target
Account(Address),
/// Storage proof target
Expand All @@ -113,7 +113,7 @@ pub enum ProofTarget {
},
}

impl ProofTarget {
impl MultiProofTarget {
/// Returns the address for the account referenced in the proof target.
pub const fn address(&self) -> &Address {
match self {
Expand All @@ -126,7 +126,7 @@ impl ProofTarget {
#[derive(Debug)]
pub enum StateRootMessage<BPF: BlindedProviderFactory> {
/// Prefetch proof targets
PrefetchProofs(HashSet<ProofTarget>),
PrefetchProofs(HashSet<MultiProofTarget>),
/// New state update from transaction execution
StateUpdate(EvmState),
/// Proof calculation completed for a specific state update
Expand Down Expand Up @@ -368,7 +368,7 @@ where
fn on_prefetch_proof(
scope: &rayon::Scope<'env>,
config: StateRootConfig<Factory>,
targets: HashSet<ProofTarget>,
targets: HashSet<MultiProofTarget>,
fetched_proof_targets: &mut MultiProofTargets,
proof_sequence_number: u64,
state_root_message_sender: Sender<StateRootMessage<BPF>>,
Expand Down

0 comments on commit 15aa96f

Please sign in to comment.