diff --git a/zero/src/bin/leader/cli.rs b/zero/src/bin/leader/cli.rs index 39674527f..cab645fbd 100644 --- a/zero/src/bin/leader/cli.rs +++ b/zero/src/bin/leader/cli.rs @@ -44,7 +44,7 @@ pub(crate) enum Command { #[arg(long, short = 't', default_value = "jerigon")] rpc_type: RpcType, /// The source of jumpdest tables. - #[arg(short = 'j', long, default_value_ifs = [("rpc_type", "jerigon", "server-fetched-structlogs"), ("rpc_type", "native", "server-fetched-structlogs")], required = false)] + #[arg(short = 'j', long, default_value_ifs = [("rpc_type", "jerigon", "client-fetched-structlogs"), ("rpc_type", "native", "client-fetched-structlogs")], required = false)] jumpdest_src: JumpdestSrc, /// The block interval for which to generate a proof. #[arg(long, short = 'i')] diff --git a/zero/src/bin/rpc.rs b/zero/src/bin/rpc.rs index 92d011ad6..5dd548992 100644 --- a/zero/src/bin/rpc.rs +++ b/zero/src/bin/rpc.rs @@ -38,7 +38,7 @@ struct RpcToolConfig { #[arg(short = 't', long, default_value = "jerigon")] rpc_type: RpcType, /// The source of jumpdest tables. - #[arg(short = 'j', long, default_value_ifs = [("rpc_type", "jerigon", "server-fetched-structlogs"), ("rpc_type", "native", "server-fetched-structlogs")], required = false)] + #[arg(short = 'j', long, default_value_ifs = [("rpc_type", "jerigon", "client-fetched-structlogs"), ("rpc_type", "native", "client-fetched-structlogs")], required = false)] jumpdest_src: JumpdestSrc, /// Backoff in milliseconds for retry requests. #[arg(long, default_value_t = 0)] diff --git a/zero/src/rpc/jerigon.rs b/zero/src/rpc/jerigon.rs index 0586d7893..8d97039bd 100644 --- a/zero/src/rpc/jerigon.rs +++ b/zero/src/rpc/jerigon.rs @@ -7,7 +7,7 @@ use alloy::{ rpc::types::{eth::BlockId, Block, BlockTransactionsKind}, transports::Transport, }; -use anyhow::{bail, Context as _}; +use anyhow::Context as _; use compat::Compat; use evm_arithmetization::{jumpdest::JumpDestTableWitness, CodeDb}; use serde::Deserialize; @@ -64,7 +64,7 @@ where let block_jumpdest_table_witnesses: Vec> = match jumpdest_src { JumpdestSrc::ProverSimulation => Vec::new(), - JumpdestSrc::ServerFetchedStructlogs => { + JumpdestSrc::ClientFetchedStructlogs => { process_transactions( &block, cached_provider.get_provider().await?.deref(), @@ -73,9 +73,6 @@ where .await? } JumpdestSrc::Serverside => todo!(), - JumpdestSrc::ClientFetchedStructlogs => { - bail!("client per transaction structlogs fetching is not supported for jerigon RPC type"); - } }; let mut code_db = CodeDb::default(); diff --git a/zero/src/rpc/mod.rs b/zero/src/rpc/mod.rs index 4f4908eb0..4e8a0278e 100644 --- a/zero/src/rpc/mod.rs +++ b/zero/src/rpc/mod.rs @@ -46,8 +46,7 @@ pub enum RpcType { pub enum JumpdestSrc { ProverSimulation, ClientFetchedStructlogs, - ServerFetchedStructlogs, // later - Serverside, // later + Serverside, // later } /// Obtain the prover input for one block diff --git a/zero/src/rpc/native/txn.rs b/zero/src/rpc/native/txn.rs index 4c7cf348b..d00a72a9b 100644 --- a/zero/src/rpc/native/txn.rs +++ b/zero/src/rpc/native/txn.rs @@ -85,7 +85,7 @@ where let block_structlogs = match jumpdest_src { JumpdestSrc::ProverSimulation => vec![None; block_prestate_trace.len()], - JumpdestSrc::ServerFetchedStructlogs => { + JumpdestSrc::ClientFetchedStructlogs => { get_block_normalized_structlogs(provider, &BlockNumberOrTag::from(block.header.number)) .await? .into_iter() @@ -93,11 +93,6 @@ where .collect() } JumpdestSrc::Serverside => todo!(), - JumpdestSrc::ClientFetchedStructlogs => { - bail!( - "client per transaction structlogs fetching is not supported for native RPC type" - ); - } }; block