From 557a05a4a8c26b193fcd7a6a700ba8b9046e954f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Dimitroff=20H=C3=B3di?= Date: Mon, 18 Mar 2024 21:19:29 -0300 Subject: [PATCH] Remove test file and reverted clap version --- node/Cargo.toml | 2 +- node/tools/src/bin/test.rs | 49 -------------------------------------- 2 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 node/tools/src/bin/test.rs diff --git a/node/Cargo.toml b/node/Cargo.toml index b37bc74f..80f955fe 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -50,7 +50,7 @@ assert_matches = "1.5.0" async-trait = "0.1.71" bit-vec = "0.6" blst = "0.3.10" -clap = { version = "4.5.3", features = ["derive"] } +clap = { version = "4.3.3", features = ["derive"] } criterion = "0.5.1" ed25519-dalek = { version = "2.0.0", features = ["rand_core"] } ff_ce = "0.14.3" diff --git a/node/tools/src/bin/test.rs b/node/tools/src/bin/test.rs deleted file mode 100644 index f856a7dd..00000000 --- a/node/tools/src/bin/test.rs +++ /dev/null @@ -1,49 +0,0 @@ -//! asdfasdf - -use clap::{command, Args, Parser}; -use std::path::PathBuf; - -/// Command-line application launching a node executor. -#[derive(Debug, Parser)] -/// asdfasdf -struct Cli { - /// Node configuration. - - /// Command line config - /// Full json config - #[arg(long, requires="node_key", conflicts_with_all=["config_file", "validator_key_file", "node_key_file"])] - config: Option, - /// Plain node key - #[arg(long, requires="config", conflicts_with_all=["config_file", "validator_key_file", "node_key_file"])] - node_key: Option, - /// Plain validator key - #[arg(long, conflicts_with_all=["config_file", "validator_key_file", "node_key_file"])] - validator_key: Option, - - /// Path to a validator key file. If set to an empty string, validator key will not be read - /// (i.e., a node will be initialized as a non-validator node). - #[arg(long, default_value = "./validator_key")] - validator_key_file: PathBuf, - /// Path to a JSON file with node configuration. - #[arg(long, default_value = "./config.json")] - config_file: PathBuf, - /// Path to a node key file. - #[arg(long, default_value = "./node_key")] - node_key_file: PathBuf, - - /// Path to the rocksdb database of the node. - #[arg(long, default_value = "./database")] - database: PathBuf, - /// Port for the RPC server. - #[arg(long)] - rpc_port: Option, -} - -/// adasdsa -#[tokio::main] -/// adasdsa -async fn main() -> anyhow::Result<()> { - let args: Cli = Cli::parse(); - dbg!(args); - Ok(()) -}