diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c839c7c..0da2a630 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 incremented upon a breaking change and the patch version will be incremented for features. ## [dev] - Unreleased +- del/remove localnet subcommand ([178](https://github.com/Ackee-Blockchain/trident/pull/178)) - feat/create AccountsSnapshots derive macro for Snapshots creation ([#177](https://github.com/Ackee-Blockchain/trident/pull/177)) - del/remove unnecessary fuzzing feature as trident is mainly fuzzer ([#176](https://github.com/Ackee-Blockchain/trident/pull/176)) - feat/fuzzing moved to separate crate trident-fuzz ([#175](https://github.com/Ackee-Blockchain/trident/pull/175)) diff --git a/crates/cli/src/command.rs b/crates/cli/src/command.rs index 44694d4e..a6f4a400 100644 --- a/crates/cli/src/command.rs +++ b/crates/cli/src/command.rs @@ -10,9 +10,6 @@ pub use fuzz::{fuzz, FuzzCommand}; mod test; pub use test::test; -mod localnet; -pub use localnet::localnet; - mod init; pub use init::{init, TestsType}; diff --git a/crates/cli/src/command/localnet.rs b/crates/cli/src/command/localnet.rs deleted file mode 100644 index cae67c5a..00000000 --- a/crates/cli/src/command/localnet.rs +++ /dev/null @@ -1,15 +0,0 @@ -use anyhow::Error; -use fehler::throws; -use tokio::signal; -use trident_client::___private::Commander; - -#[throws] -pub async fn localnet() { - let commander = Commander::new(); - let validator_handle = commander.start_localnet().await?; - - // wait for SIGINT (^C) signal - signal::ctrl_c().await.expect("failed to listen for event"); - - validator_handle.stop_and_remove_ledger().await?; -} diff --git a/crates/cli/src/lib.rs b/crates/cli/src/lib.rs index f1173b00..d3859333 100644 --- a/crates/cli/src/lib.rs +++ b/crates/cli/src/lib.rs @@ -45,8 +45,6 @@ enum Command { #[clap(subcommand)] subcmd: FuzzCommand, }, - /// Run local test validator - Localnet, /// Initialize test environment Init { /// Specifies the types of tests for which the frameworks should be initialized. @@ -66,7 +64,6 @@ pub async fn start() { Command::KeyPair { subcmd } => command::keypair(subcmd)?, Command::Test { root } => command::test(root).await?, Command::Fuzz { root, subcmd } => command::fuzz(root, subcmd).await?, - Command::Localnet => command::localnet().await?, Command::Init { tests_type } => command::init(tests_type).await?, Command::Clean => command::clean().await?, }