Skip to content

Commit

Permalink
chore: remove testnet-specific cli defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
conorsch committed Jul 1, 2024
1 parent f7aaf61 commit c463e80
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion crates/bin/pcli/src/command/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ pub struct InitCmd {
/// The GRPC URL that will be used in the generated config.
#[clap(
long,
default_value = "https://grpc.testnet.penumbra.zone",
// Note: reading from the environment here means that running
// pcli init inside of the test harness (where we override that)
// will correctly set the URL, even though we don't subsequently
Expand Down
1 change: 0 additions & 1 deletion crates/bin/pclientd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ pub enum Command {
#[clap(
long,
display_order = 900,
default_value = "https://grpc.testnet.penumbra.zone",
parse(try_from_str = Url::parse)
)]
grpc_url: Url,
Expand Down
5 changes: 1 addition & 4 deletions crates/bin/pd/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,7 @@ pub enum NetworkCommand {
/// Requires a URL for the CometBFT RPC for the bootstrap node.
Join {
/// URL of the remote CometBFT RPC endpoint for bootstrapping connection.
#[clap(
env = "PENUMBRA_PD_JOIN_URL",
default_value = "https://rpc.testnet.penumbra.zone"
)]
#[clap(env = "PENUMBRA_PD_JOIN_URL")]
node: Url,
/// Optional URL of archived node state in .tar.gz format. The archive will be
/// downloaded and extracted locally, allowing the node to join a network at a block height
Expand Down
2 changes: 1 addition & 1 deletion crates/bin/pd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use anyhow::{anyhow, Context};
use cnidarium::Storage;
use metrics_exporter_prometheus::PrometheusBuilder;
use pd::{
cli::{Opt, RootCommand, NetworkCommand},
cli::{NetworkCommand, Opt, RootCommand},
migrate::Migration::{ReadyToStart, Testnet78},
network::{
config::{get_network_dir, parse_tm_address, url_has_necessary_parts},
Expand Down
1 change: 0 additions & 1 deletion crates/misc/measure/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ pub struct Opt {
#[clap(
short,
long,
default_value = "https://grpc.testnet.penumbra.zone",
env = "PENUMBRA_NODE_PD_URL",
parse(try_from_str = url::Url::parse)
)]
Expand Down

0 comments on commit c463e80

Please sign in to comment.