Skip to content

Commit

Permalink
refactor migration to tss-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Aug 12, 2024
1 parent c2da535 commit 0e6fa1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ start-stress-test: zetanode
cd contrib/localnet/ && $(DOCKER_COMPOSE) --profile stress -f docker-compose.yml up -d

start-tss-migration-test: zetanode
@echo "--> Starting migration test"
export LOCALNET_MODE=migrate && \
@echo "--> Starting tss migration test"
export LOCALNET_MODE=tss-migrate && \
export E2E_ARGS="--test-tss-migration" && \
cd contrib/localnet/ && $(DOCKER_COMPOSE) up -d

Expand Down
3 changes: 2 additions & 1 deletion contrib/localnet/orchestrator/start-zetae2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# First argument is the command to run the local e2e
# A second optional argument can be passed and can have the following value:
# upgrade: run the local e2e once, then restart zetaclientd at upgrade height and run the local e2e again
# tss-migrate: run the local e2e once, then trigger a TSS migration and run the local e2e again

get_zetacored_version() {
retries=10
Expand Down Expand Up @@ -95,7 +96,7 @@ geth --exec "eth.sendTransaction({from: eth.coinbase, to: '${address}', value: w
# Mode migrate is used to run the e2e tests before and after the TSS migration
# It runs the e2e tests with the migrate flag which triggers a TSS migration at the end of the tests. Once the migrationis done the first e2e test is complete
# The second e2e test is run after the migration to ensure the network is still working as expected with the new tss address
if [ "$LOCALNET_MODE" == "migrate" ]; then
if [ "$LOCALNET_MODE" == "tss-migrate" ]; then
if [[ ! -f deployed.yml ]]; then
zetae2e local $E2E_ARGS --setup-only --config config.yml --config-out deployed.yml --skip-header-proof
if [ $? -ne 0 ]; then
Expand Down

0 comments on commit 0e6fa1c

Please sign in to comment.