Skip to content

Commit

Permalink
Remove --disable-soroban-rpc flag
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Feb 22, 2024
1 parent 4d246d7 commit 7aec389
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions cmd/soroban-cli/src/commands/network/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ pub struct Cmd {
#[arg(short = 'p', long, num_args = 1.., default_value = DEFAULT_PORT_MAPPING)]
pub ports_mapping: Vec<String>,

/// Optional argument to turn off soroban rpc
#[arg(short = 'r', long)]
pub disable_soroban_rpc: bool,

/// Optional argument to override the default docker image tag for the given network
#[arg(short = 't', long)]
pub image_tag_override: Option<String>,
Expand Down Expand Up @@ -118,15 +114,9 @@ async fn run_docker_command(cmd: &Cmd) -> Result<(), Error> {
}

fn get_container_args(cmd: &Cmd) -> Vec<String> {
let enable_soroban_rpc = if cmd.disable_soroban_rpc {
String::new()
} else {
"--enable-soroban-rpc".to_string()
};

[
format!("--{}", cmd.network),
enable_soroban_rpc,
"--enable-soroban-rpc".to_string(),
get_protocol_version_arg(cmd),
get_limits_arg(cmd),
]
Expand Down

0 comments on commit 7aec389

Please sign in to comment.