diff --git a/networks/devnet/init-genesis.sh b/networks/devnet/init-genesis.sh index c890a0dd..99630e48 100755 --- a/networks/devnet/init-genesis.sh +++ b/networks/devnet/init-genesis.sh @@ -137,15 +137,16 @@ elif [[ "$OS_NAME" = "GNU/Linux" ]]; then for ((i=0; i<3; i++)) do yes $PASSWORD | 0gchaind keys add "0gchain_mst_$i" --keyring-backend os --home "$ROOT_DIR"/node0 --eth done - - 0gchaind keys add msa --multisig-threshold 2 --multisig=0gchain_mst_1,0gchain_mst_2,0gchain_mst_3 - + echo "before msa" + yes $PASSWORD | 0gchaind keys add msa --multisig-threshold 2 --multisig=0gchain_mst_0,0gchain_mst_1,0gchain_mst_2 --keyring-backend os --home "$ROOT_DIR"/node0 --eth + echo "after msa" # Copy validators to other nodes for ((i=1; i<$NUM_NODES; i++)) do cp "$ROOT_DIR"/node0/keyhash "$ROOT_DIR"/node$i cp "$ROOT_DIR"/node0/*.address "$ROOT_DIR"/node$i cp "$ROOT_DIR"/node0/*.info "$ROOT_DIR"/node$i done + echo "after cp" else echo -e "\n\nOS: $OS_NAME" echo "Unsupported OS to generate keys for validators!!!" @@ -162,7 +163,7 @@ for ((i=0; i<$NUM_NODES; i++)) do fi done 0gchaind add-genesis-account 0g1zyvrkyr8pmczkguxztxpp3qcd0uhkt0tfxjupt $FAUCET_BALANCE --home "$ROOT_DIR/node$i" - 0gchaind add-genesis-account $(0gchaind keys show -a msa) $VESTING_BALANCE --vesting-amount $VESTING_BALANCE --vesting-start-time $VESTING_ACCOUNT_START_TIME --vesting-end-time $VESTING_ACCOUNT_END_TIME --home "$ROOT_DIR/node$i" + 0gchaind add-genesis-account $(0gchaind keys show -a msa --home "$ROOT_DIR/node$i") $VESTING_BALANCE --vesting-amount $VESTING_BALANCE --vesting-start-time $VESTING_ACCOUNT_START_TIME --vesting-end-time $VESTING_ACCOUNT_END_TIME --home "$ROOT_DIR/node$i" done # Prepare genesis txs