Skip to content

Commit bcb3cf4

Browse files
committed
refactor: rename flags to execution-proofs
1 parent b4b7029 commit bcb3cf4

File tree

7 files changed

+33
-33
lines changed

7 files changed

+33
-33
lines changed

beacon_node/beacon_chain/src/data_availability_checker.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ impl<T: BeaconChainTypes> DataAvailabilityChecker<T> {
284284
) -> Result<bool, AvailabilityCheckError> {
285285
let Some(verifier_registry) = &self.verifier_registry else {
286286
// No verifier configured but receiving proofs - this is a configuration error.
287-
// If the chain spec enables zkVM, the node must have --zkevm-validation flag set.
287+
// If the chain spec enables execution proofs, the node must have --execution-proofs flag set.
288288
return Err(AvailabilityCheckError::ProofVerificationError(
289-
"Node is receiving execution proofs but zkVM verification is not enabled. \
290-
Use --zkevm-validation flag to enable proof verification."
289+
"Node is receiving execution proofs but proof verification is not enabled. \
290+
Use --execution-proofs flag to enable proof verification."
291291
.to_string(),
292292
));
293293
};

beacon_node/client/src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ where
193193

194194
// Spawn the dummy execution layer
195195
if config.use_dummy_el {
196-
info!("--zkevm-validation: spawning in-process execution layer");
196+
info!("--execution-proofs: spawning in-process execution layer");
197197

198198
let dummy_el_config = dummy_el::DummyElConfig {
199199
host: "127.0.0.1".to_string(),

beacon_node/src/cli.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -932,26 +932,26 @@ pub fn cli_app() -> Command {
932932
.action(ArgAction::Set)
933933
.display_order(0)
934934
)
935-
/* ZK-VM Execution Layer settings */
935+
/* Execution Proofs settings */
936936
.arg(
937-
Arg::new("zkevm-validation")
938-
.long("zkevm-validation")
939-
.help("Activates ZKVM execution proof mode. Enables the node to subscribe to the \
937+
Arg::new("execution-proofs")
938+
.long("execution-proofs")
939+
.help("Activates execution proof mode. Enables the node to subscribe to the \
940940
execution_proof gossip topic, receive and verify execution proofs from peers, \
941-
and advertise zkVM support in its ENR for peer discovery. \
942-
Use --zkvm-generation-proof-types to specify which proof types this node \
941+
and advertise execution proof support in its ENR for peer discovery. \
942+
Use --execution-proof-types to specify which proof types this node \
943943
should generate (optional - nodes can verify without generating).")
944944
.action(ArgAction::SetTrue)
945945
.display_order(0)
946946
)
947947
.arg(
948-
Arg::new("zkvm-generation-proof-types")
949-
.long("zkvm-generation-proof-types")
948+
Arg::new("execution-proof-types")
949+
.long("execution-proof-types")
950950
.value_name("PROOF_TYPE_IDS")
951951
.help("Comma-separated list of proof type IDs to generate \
952952
(e.g., '0,1' where 0=SP1+Reth, 1=Risc0+Geth). \
953953
Optional - nodes can verify proofs without generating them.")
954-
.requires("zkevm-validation")
954+
.requires("execution-proofs")
955955
.action(ArgAction::Set)
956956
.display_order(0)
957957
)
@@ -1656,7 +1656,7 @@ pub fn cli_app() -> Command {
16561656
.hide(true)
16571657
)
16581658
.group(ArgGroup::new("execution-source")
1659-
.args(&["execution-endpoint", "zkevm-validation"])
1659+
.args(&["execution-endpoint", "execution-proofs"])
16601660
.required(true)
16611661
.multiple(true))
16621662
.group(ArgGroup::new("enable_http").args(["http", "gui", "staking"]).multiple(true))

beacon_node/src/config.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -269,21 +269,21 @@ pub fn get_config<E: EthSpec>(
269269
client_config.http_metrics.allocator_metrics_enabled = false;
270270
}
271271

272-
// Auto-enable in-process dummy execution layer if --zkevm-validation is set without
273-
// --zkvm-generation-proof-types and no explicit --execution-endpoint is provided.
274-
let use_dummy_el = cli_args.get_flag("zkevm-validation")
272+
// Auto-enable in-process dummy execution layer if --execution-proofs is set without
273+
// --execution-proof-types and no explicit --execution-endpoint is provided.
274+
let use_dummy_el = cli_args.get_flag("execution-proofs")
275275
&& cli_args
276-
.get_one::<String>("zkvm-generation-proof-types")
276+
.get_one::<String>("execution-proof-types")
277277
.is_none()
278278
&& cli_args.get_one::<String>("execution-endpoint").is_none();
279279

280280
client_config.use_dummy_el = use_dummy_el;
281281

282-
// Configure execution layer: either use provided endpoint or dummy EL (auto-enabled with --zkevm-validation)
282+
// Configure execution layer: either use provided endpoint or dummy EL (auto-enabled with --execution-proofs)
283283
if !use_dummy_el {
284284
let endpoints: Option<String> = clap_utils::parse_optional(cli_args, "execution-endpoint")?;
285285
let endpoints = endpoints
286-
.ok_or("Error! Either --execution-endpoint or --zkevm-validation must be provided")?;
286+
.ok_or("Error! Either --execution-endpoint or --execution-proofs must be provided")?;
287287

288288
let mut el_config = execution_layer::Config::default();
289289

@@ -354,7 +354,7 @@ pub fn get_config<E: EthSpec>(
354354
client_config.execution_layer = Some(el_config);
355355
} else {
356356
// Create an execution_layer config pointing to localhost
357-
info!("Using in-process dummy execution layer (--zkevm-validation)");
357+
info!("Using in-process dummy execution layer (--execution-proofs)");
358358

359359
let mut el_config = execution_layer::Config::default();
360360

@@ -373,18 +373,18 @@ pub fn get_config<E: EthSpec>(
373373
client_config.execution_layer = Some(el_config);
374374
}
375375

376-
// Parse ZK-VM execution layer config if provided
377-
if cli_args.get_flag("zkevm-validation") {
376+
// Parse execution proofs config if provided
377+
if cli_args.get_flag("execution-proofs") {
378378
let generation_proof_types = if let Some(gen_types_str) =
379-
clap_utils::parse_optional::<String>(cli_args, "zkvm-generation-proof-types")?
379+
clap_utils::parse_optional::<String>(cli_args, "execution-proof-types")?
380380
{
381381
gen_types_str
382382
.split(',')
383383
.map(|s| s.trim().parse::<u8>())
384384
.collect::<Result<Vec<u8>, _>>()
385385
.map_err(|e| {
386386
format!(
387-
"Invalid proof type ID in --zkvm-generation-proof-types: {}",
387+
"Invalid proof type ID in --execution-proof-types: {}",
388388
e
389389
)
390390
})?
@@ -395,7 +395,7 @@ pub fn get_config<E: EthSpec>(
395395
} else {
396396
// No generation proof types provided - running in verification-only mode
397397
if client_config.use_dummy_el {
398-
info!("--zkevm-validation: no EL needed for proof verification");
398+
info!("--execution-proofs: no EL needed for proof verification");
399399
}
400400
HashSet::new()
401401
};

consensus/types/src/chain_spec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ pub struct ChainSpec {
222222
pub gloas_fork_epoch: Option<Epoch>,
223223

224224
/*
225-
* zkVM execution proof params
225+
* Execution proof params
226226
*/
227-
/// Whether zkVM mode is enabled via CLI flag --zkevm-validation.
227+
/// Whether execution proofs are enabled via CLI flag --execution-proofs.
228228
/// When true, the node will subscribe to execution proof gossip, verify proofs,
229229
/// TODO(ethproofs): Changed to Electra fork for demo.
230230
/// and optionally generate proofs. zkVM activates at the Fulu fork.

scripts/local_testnet/network_params_mixed_proof_gen_verify.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ participants:
66
cl_type: lighthouse
77
cl_image: lighthouse:local
88
cl_extra_params:
9-
- --zkevm-validation
10-
- --zkvm-generation-proof-types=0,1
9+
- --execution-proofs
10+
- --execution-proof-types=0,1
1111
- --target-peers=3
1212
count: 3
1313
# Proof verifying only node (node 4)
@@ -18,7 +18,7 @@ participants:
1818
cl_type: lighthouse
1919
cl_image: lighthouse:local
2020
cl_extra_params:
21-
- --zkevm-validation
21+
- --execution-proofs
2222
- --target-peers=3
2323
count: 1
2424
network_params:

scripts/local_testnet/network_params_proof_gen_only.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ participants:
66
cl_type: lighthouse
77
cl_image: lighthouse:local
88
cl_extra_params:
9-
- --zkevm-validation
10-
- --zkvm-generation-proof-types=0,1
9+
- --execution-proofs
10+
- --execution-proof-types=0,1
1111
- --target-peers=3
1212
count: 4
1313
network_params:

0 commit comments

Comments
 (0)