From 7aec3895d3513366e26f0cccd0cb15f40d13f8c9 Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman <4752801+elizabethengelman@users.noreply.github.com> Date: Thu, 22 Feb 2024 10:09:22 -0500 Subject: [PATCH] Remove --disable-soroban-rpc flag --- cmd/soroban-cli/src/commands/network/start.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/cmd/soroban-cli/src/commands/network/start.rs b/cmd/soroban-cli/src/commands/network/start.rs index 3567a83b7..35140a80a 100644 --- a/cmd/soroban-cli/src/commands/network/start.rs +++ b/cmd/soroban-cli/src/commands/network/start.rs @@ -34,10 +34,6 @@ pub struct Cmd { #[arg(short = 'p', long, num_args = 1.., default_value = DEFAULT_PORT_MAPPING)] pub ports_mapping: Vec, - /// 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, @@ -118,15 +114,9 @@ async fn run_docker_command(cmd: &Cmd) -> Result<(), Error> { } fn get_container_args(cmd: &Cmd) -> Vec { - 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), ]