diff --git a/grandine/src/grandine_args.rs b/grandine/src/grandine_args.rs index 439a053e..bfaa6826 100644 --- a/grandine/src/grandine_args.rs +++ b/grandine/src/grandine_args.rs @@ -99,7 +99,7 @@ pub struct GrandineArgs { graffiti: Vec, /// List of optional runtime features to enable - #[clap(long)] + #[clap(long, value_delimiter = ',')] features: Vec, #[clap(subcommand)] @@ -181,7 +181,7 @@ struct HttpApiOptions { /// List of Access-Control-Allow-Origin header values for the HTTP API server. /// Defaults to the listening URL of the HTTP API server. - #[clap(long)] + #[clap(long, value_delimiter = ',')] http_allowed_origins: Vec, /// Max number of events stored in a single channel for HTTP API /events api call @@ -458,11 +458,11 @@ struct NetworkConfigOptions { enr_quic_port_ipv6: Option, /// List of ENR boot node addresses - #[clap(long)] + #[clap(long, value_delimiter = ',')] boot_nodes: Vec, /// List of Multiaddr node addresses - #[clap(long)] + #[clap(long, value_delimiter = ',')] libp2p_nodes: Vec, /// Target number of network peers @@ -470,7 +470,7 @@ struct NetworkConfigOptions { target_peers: usize, /// List of trusted peers - #[clap(long)] + #[clap(long, value_delimiter = ',')] trusted_peers: Vec, } @@ -690,7 +690,7 @@ struct ValidatorOptions { builder_max_skipped_slots_per_epoch: u64, /// List of public keys to use from Web3Signer - #[clap(long, num_args = 1..)] + #[clap(long, num_args = 1.., value_delimiter = ',')] web3signer_public_keys: Vec, /// [DEPRECATED] List of Web3Signer API URLs diff --git a/grandine/src/predefined_network.rs b/grandine/src/predefined_network.rs index 61577eca..bfcd53ff 100644 --- a/grandine/src/predefined_network.rs +++ b/grandine/src/predefined_network.rs @@ -129,6 +129,13 @@ impl PredefinedNetwork { genesis_download_url: Option, ) -> Result> { let config = &self.chain_config(); + + #[cfg(any( + feature = "network-goerli", + feature = "network-sepolia", + feature = "network-holesky", + test + ))] let load_genesis_state = |default_download_url: &str| { load_or_download_genesis_state( config,