diff --git a/contrib/images/Makefile b/contrib/images/Makefile index 218b03e..96688fc 100644 --- a/contrib/images/Makefile +++ b/contrib/images/Makefile @@ -18,6 +18,6 @@ start-bcd-consumer-integration: stop-bcd-consumer-integration stop-bcd-consumer-integration: docker compose -f ibcsim-bcd/docker-compose.yml down - rm -rf ibcsim-bcd/.testnets + sudo rm -rf ibcsim-bcd/.testnets .PHONY: ibcsim-bcd ibcsim-bcd-rmi start-bcd-consumer-integration stop-bcd-consumer-integration babylond babylond-rmi diff --git a/contrib/images/ibcsim-bcd/setup-bcd.sh b/contrib/images/ibcsim-bcd/setup-bcd.sh index 4780181..3fe07f9 100755 --- a/contrib/images/ibcsim-bcd/setup-bcd.sh +++ b/contrib/images/ibcsim-bcd/setup-bcd.sh @@ -61,9 +61,9 @@ delegate="100000000000$DENOM" redirect $BINARY --home $CHAINDIR/$CHAINID --chain-id $CHAINID init $CHAINID sleep 1 -$BINARY --home $CHAINDIR/$CHAINID keys add validator $KEYRING --output json > $CHAINDIR/$CHAINID/validator_seed.json 2>&1 +$BINARY --home $CHAINDIR/$CHAINID keys add validator $KEYRING --output json >$CHAINDIR/$CHAINID/validator_seed.json 2>&1 sleep 1 -$BINARY --home $CHAINDIR/$CHAINID keys add user $KEYRING --output json > $CHAINDIR/$CHAINID/key_seed.json 2>&1 +$BINARY --home $CHAINDIR/$CHAINID keys add user $KEYRING --output json >$CHAINDIR/$CHAINID/key_seed.json 2>&1 sleep 1 redirect $BINARY --home $CHAINDIR/$CHAINID genesis add-genesis-account $($BINARY --home $CHAINDIR/$CHAINID keys $KEYRING show user -a) $coins sleep 1 @@ -103,6 +103,9 @@ sed -i 's/"babylon_contract_address": ""/"babylon_contract_address": "'"$babylon sed -i 's/"btc_staking_contract_address": ""/"btc_staking_contract_address": "'"$btcStakingContractAddr"'"/g' $CHAINDIR/$CHAINID/config/genesis.json sed -i 's/"btc_finality_contract_address": ""/"btc_finality_contract_address": "'"$btcFinalityContractAddr"'"/g' $CHAINDIR/$CHAINID/config/genesis.json +# change permission so that e2e program can use the keys there +sudo chmod -R 777 $CHAINDIR/$CHAINID + # Start echo "Starting $BINARY..." $BINARY --home $CHAINDIR/$CHAINID start --pruning=nothing --grpc-web.enable=false --grpc.address="0.0.0.0:$GRPCPORT" --log_level trace --trace --log_format 'plain' 2>&1 | tee $CHAINDIR/$CHAINID.log &