From d0bcf7a20ac964ecb658f4344ae3d2001f474fe0 Mon Sep 17 00:00:00 2001 From: Kirill Lykov Date: Fri, 17 Feb 2023 20:07:58 +0100 Subject: [PATCH] remove delinquent nodes when computing total stake at bench-tps --- bench-tps/src/cli.rs | 2 +- bench-tps/src/main.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bench-tps/src/cli.rs b/bench-tps/src/cli.rs index 06ad95c44ef8eb..44cbb2a3ea91ca 100644 --- a/bench-tps/src/cli.rs +++ b/bench-tps/src/cli.rs @@ -373,7 +373,7 @@ pub fn build_args<'a>(version: &'_ str) -> App<'a, '_> { .takes_value(true) .requires("json_rpc_url") .validator(is_keypair) - .help("File containing the node id (keypair) of a validator with active stake. This allows communicating with network using staked connection"), + .help("File containing the node identity (keypair) of a validator with active stake. This allows communicating with network using staked connection"), ) } diff --git a/bench-tps/src/main.rs b/bench-tps/src/main.rs index 562d3c90857b40..2a3391a62f6125 100644 --- a/bench-tps/src/main.rs +++ b/bench-tps/src/main.rs @@ -58,7 +58,6 @@ fn find_node_activated_stake( let total_active_stake: u64 = vote_accounts .current .iter() - .chain(vote_accounts.delinquent.iter()) .map(|vote_account| vote_account.activated_stake) .sum();