Skip to content

Commit

Permalink
more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanjay176 committed Mar 1, 2021
1 parent 6203a3c commit d99dc06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 4 additions & 10 deletions lcli/src/insecure_validators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,13 @@ pub fn run(matches: &ArgMatches) -> Result<(), String> {
.collect::<Vec<_>>();

for (i, indices) in indices_range.iter().enumerate() {
let validators_dir = base_dir
.clone()
.join(format!("node_{}", i + 1))
.join("validators");
let secrets_dir = base_dir
.clone()
.join(format!("node_{}", i + 1))
.join("secrets");
let validators_dir = base_dir.join(format!("node_{}", i + 1)).join("validators");
let secrets_dir = base_dir.join(format!("node_{}", i + 1)).join("secrets");
generate_validator_dirs(indices, validators_dir, secrets_dir)?;
}
} else {
let validators_dir = base_dir.clone().join("validators");
let secrets_dir = base_dir.clone().join("secrets");
let validators_dir = base_dir.join("validators");
let secrets_dir = base_dir.join("secrets");
generate_validator_dirs(
(0..validator_count).collect::<Vec<_>>().as_slice(),
validators_dir,
Expand Down
4 changes: 2 additions & 2 deletions scripts/local_testnet/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# is now + $GENESIS_DELAY.
#
# Generates datadirs for multiple validator keys according to the
# $VALIDATOR_COUNT and $BEACON_NODE_COUNT variables.
# $VALIDATOR_COUNT and $NODE_COUNT variables.
#

source ./vars.env
Expand Down Expand Up @@ -42,7 +42,7 @@ lcli \
insecure-validators \
--count $VALIDATOR_COUNT \
--base-dir $DATADIR \
--node-count $BEACON_NODE_COUNT
--node-count $NODE_COUNT

echo Validators generated with keystore passwords at $DATADIR.
echo "Building genesis state... (this might take a while)"
Expand Down

0 comments on commit d99dc06

Please sign in to comment.