diff --git a/Makefile b/Makefile index 28fc3908e3..920ac24cf5 100644 --- a/Makefile +++ b/Makefile @@ -258,13 +258,10 @@ start-e2e-import-mainnet-test: zetanode @echo "--> Starting e2e import-data test" cd contrib/localnet/ && ./scripts/import-data.sh mainnet && $(DOCKER) compose -f docker-compose.yml -f docker-compose-import-data.yml up -d -start-e2e-import-mainnet-test: zetanode - @echo "--> Starting e2e import-data test" - cd contrib/localnet/ && ./scripts/import-data.sh mainnet && $(DOCKER) compose -f docker-compose.yml -f docker-compose-import-data.yml up -d start-e2e-import-mainnet-upgrade: zetanode-upgrade @echo "--> Starting import-data upgrade test" - cd contrib/localnet/ && ./scripts/import-data.sh && $(DOCKER) compose -f docker-compose.yml -f docker-compose-import-upgrade.yml up -d + cd contrib/localnet/ && ./scripts/import-data.sh mainnet && $(DOCKER) compose -f docker-compose.yml -f docker-compose-import-upgrade.yml up -d stop-test: cd contrib/localnet/ && $(DOCKER) compose down --remove-orphans diff --git a/contrib/localnet/scripts/start-zetacored.sh b/contrib/localnet/scripts/start-zetacored.sh index 51a924baba..5592ff187d 100755 --- a/contrib/localnet/scripts/start-zetacored.sh +++ b/contrib/localnet/scripts/start-zetacored.sh @@ -257,11 +257,12 @@ then done +# Modiify this to use --modify flag for `import-data-upgrade` in the future once v18 is live. if [[ "$OPTION" == "import-data" || "$OPTION" == "import-data-upgrade" ]]; then echo "Importing data" zetacored parse-genesis-file /root/genesis_data/exported-genesis.json fi - +# Update governance voting period to 100s , to ignore the voting period imported from mainnet. cat $HOME/.zetacored/config/genesis.json | jq '.app_state["gov"]["voting_params"]["voting_period"]="100s"' > $HOME/.zetacored/config/tmp_genesis.json && mv $HOME/.zetacored/config/tmp_genesis.json $HOME/.zetacored/config/genesis.json # 4. Collect all the gentx files in zetacore0 and create the final genesis.json