Skip to content

Commit

Permalink
remove delinquent nodes when computing total stake at bench-tps
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Lykov committed Feb 17, 2023
1 parent ba27243 commit ca2c4e3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion bench-tps/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
)
}

Expand Down
1 change: 0 additions & 1 deletion bench-tps/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit ca2c4e3

Please sign in to comment.