From ae54104eb4c64ff9f0f75ccd189d98a7510599f7 Mon Sep 17 00:00:00 2001 From: greg Date: Thu, 4 Apr 2024 17:37:20 +0000 Subject: [PATCH] rm stake account for rpc node --- Cargo.lock | 4 ++-- src/genesis.rs | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3638624..ce16dc9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1868,9 +1868,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fbd2820c5e49886948654ab546d0688ff24530286bdcf8fca3cefb16d4618eb" +checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" dependencies = [ "bytes", "fnv", diff --git a/src/genesis.rs b/src/genesis.rs index cbb8801..6b766f0 100644 --- a/src/genesis.rs +++ b/src/genesis.rs @@ -48,11 +48,12 @@ impl Genesis { info!("generating {number_of_accounts} {validator_type} accounts..."); - let mut account_types = vec!["identity", "stake-account", "vote-account"]; - match validator_type { - ValidatorType::Bootstrap | ValidatorType::Standard => (), + let account_types = match validator_type { + ValidatorType::Bootstrap | ValidatorType::Standard => { + vec!["identity", "stake-account", "vote-account"] + } ValidatorType::RPC => { - account_types.pop(); // no vote-account for RPC + vec!["identity"] // no vote or stake account for RPC } ValidatorType::Client => panic!("Client type not supported"), };