Skip to content

Commit

Permalink
update make file
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Jun 21, 2024
1 parent fca1ea9 commit 7c0e0dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion contrib/localnet/scripts/start-zetacored.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c0e0dc

Please sign in to comment.