Commit 4f96b2c 1 parent f37adcf commit 4f96b2c Copy full SHA for 4f96b2c
File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ scenario2-setup-nobuild:
66
66
$(AGCH ) --home=t1/n0 --keyring-dir=t1/bootstrap gentx --keyring-backend=test bootstrap 73000000ubld --chain-id=$(CHAIN_ID )
67
67
$(AGCH ) --home=t1/n0 collect-gentxs
68
68
$(AGCH ) --home=t1/n0 validate-genesis
69
- ../agoric-cli/bin/agoric set-defaults --export-metrics ag-chain-cosmos t1/n0/config
69
+ ../agoric-cli/bin/agoric set-defaults --export-metrics --bootstrap-address= ` cat t1/bootstrap-address ` ag-chain-cosmos t1/n0/config
70
70
# Set the chain address in all the ag-solos.
71
71
jq ' . + { genesis_time: "$(GENESIS_TIME)", initial_height: "$(INITIAL_HEIGHT)" }' t1/n0/config/genesis.json > t1/n0/config/genesis2.json
72
72
mv t1/n0/config/genesis2.json t1/n0/config/genesis.json
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ testnet)
55
55
portstart=$(( $BASE_PORT + $i * $NUM_SOLOS ))
56
56
portend=$(( $portstart + $NUM_SOLOS - 1 ))
57
57
SOLO_ADDRS=()
58
- SOLO_NAMES=()
59
58
POWER_FLAGS=' [\"agoric.vattp\"]'
60
59
egresses=
61
60
sep=' '
@@ -64,6 +63,7 @@ testnet)
64
63
echo " Initializing ag-solo in $solo "
65
64
$SOLO init $solo --webport=$port
66
65
addr=$( cat $solo /ag-cosmos-helper-address)
66
+ SOLO_ADDRS+=( " $addr " )
67
67
$DAEMON add-genesis-account --home=$n0d \
68
68
$( $CLI --home=$solo /$CLI -statedir --keyring-backend=test keys show -a ag-solo) \
69
69
1000urun,1provisionpass
@@ -73,7 +73,8 @@ testnet)
73
73
done
74
74
for node in ` ls -d $chainid /n* 2> /dev/null || true` ; do
75
75
[[ " $node /$DAEMON " == $n0d ]] || cp $n0d /config/genesis.json $node /$DAEMON /config/genesis.json
76
- " $thisdir /../../agoric-cli/bin/agoric" set-defaults ag-chain-cosmos $node /$DAEMON /config
76
+ " $thisdir /../../agoric-cli/bin/agoric" set-defaults --bootstrap-address=${SOLO_ADDRS[0]} \
77
+ ag-chain-cosmos $node /$DAEMON /config
77
78
cp " $node /$DAEMON /config/genesis.json" " $node /$DAEMON /config/genesis-orig.json"
78
79
# Append the egresses to the genesis and reset bond_denom.
79
80
jq " .*{app_state:{staking:{params:{bond_denom:\" stake\" }},swingset:{storage:{$egresses }}}}" \
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ case $DAEMON in
44
44
ag-chain-cosmos)
45
45
# For Agoric
46
46
DIR=$( dirname -- " ${BASH_SOURCE[0]} " )
47
- " $DIR /../../agoric-cli/bin/agoric" set-defaults ag-chain-cosmos ~ /.$DAEMON /config
47
+ " $DIR /../../agoric-cli/bin/agoric" set-defaults --bootstrap-address= $GENACCT ag-chain-cosmos ~ /.$DAEMON /config
48
48
;;
49
49
esac
50
50
You can’t perform that action at this time.
0 commit comments