Skip to content

Commit

Permalink
revert adding keys in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Dec 23, 2022
1 parent 7e51df1 commit e56965c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/devnet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.12
version: 0.1.13

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 3 additions & 5 deletions charts/devnet/scripts/setup_genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ for type in $(jq -r ". | keys[]" $KEYS_CONFIG)
do
for ((i=0; i<$(jq -r ".$type | length" $KEYS_CONFIG); i++))
do
echo "Adding key...." $(jq -r ".$type[$i].name" $KEYS_CONFIG) && \
jq -r ".$type[$i].mnemonic" $KEYS_CONFIG | $CHAIN_BIN keys add $(jq -r ".$type[$i].name" $KEYS_CONFIG) --recover --keyring-backend="test" && \
$CHAIN_BIN add-genesis-account $($CHAIN_BIN keys show -a $(jq -r .$type[$i].name $KEYS_CONFIG) --keyring-backend="test") $COINS --keyring-backend="test" &
echo "Adding key...." $(jq -r ".$type[$i].name" $KEYS_CONFIG)
jq -r ".$type[$i].mnemonic" $KEYS_CONFIG | $CHAIN_BIN keys add $(jq -r ".$type[$i].name" $KEYS_CONFIG) --recover --keyring-backend="test"
$CHAIN_BIN add-genesis-account $($CHAIN_BIN keys show -a $(jq -r .$type[$i].name $KEYS_CONFIG) --keyring-backend="test") $COINS --keyring-backend="test"
done
done

echo "Sleeping before all keys are added"
sleep 5
NUM_KEYS=$($CHAIN_BIN keys list --keyring-backend test --output json | jq -r ". | length")
echo "Number of keys added to keyring: $NUM_KEYS"

Expand Down

0 comments on commit e56965c

Please sign in to comment.