File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,21 @@ MONIKER=${MONIKER:-node001}
10
10
wasmd init --chain-id " $CHAIN_ID " " $MONIKER "
11
11
# staking/governance token is hardcoded in config, change this
12
12
sed -i " s/\" stake\" /\" $STAKE \" /" " $HOME " /.wasmd/config/genesis.json
13
+ # this is essential for sub-1s block times (or header times go crazy)
14
+ sed -i ' s/"time_iota_ms": "1000"/"time_iota_ms": "10"/' " $HOME " /.wasmd/config/genesis.json
15
+
13
16
if ! wasmd keys show validator; then
14
17
(echo " $PASSWORD " ; echo " $PASSWORD " ) | wasmd keys add validator
15
18
fi
16
19
# hardcode the validator account for this instance
17
20
echo " $PASSWORD " | wasmd add-genesis-account validator " 1000000000$STAKE ,1000000000$FEE "
21
+
18
22
# (optionally) add a few more genesis accounts
19
23
for addr in " $@ " ; do
20
24
echo $addr
21
25
wasmd add-genesis-account " $addr " " 1000000000$STAKE ,1000000000$FEE "
22
26
done
27
+
23
28
# submit a genesis validator tx
24
29
# # Workraround for https://github.com/cosmos/cosmos-sdk/issues/8251
25
30
(echo " $PASSWORD " ; echo " $PASSWORD " ; echo " $PASSWORD " ) | wasmd gentx validator " 250000000$STAKE " --chain-id=" $CHAIN_ID " --amount=" 250000000$STAKE "
You can’t perform that action at this time.
0 commit comments