From 5575f5e25773a37a5810c26dd76a4811bcb0302f Mon Sep 17 00:00:00 2001 From: kienn6034 Date: Tue, 2 Apr 2024 16:42:38 +0700 Subject: [PATCH] test: migrate 08 wasm data --- scripts/tweak-test-upgrade.sh | 2 +- scripts/upgrade/v6_to_7/post_08_wasm.sh | 10 ++++++++++ scripts/upgrade/v6_to_7/pre_08_wasm.sh | 1 - 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 scripts/upgrade/v6_to_7/post_08_wasm.sh diff --git a/scripts/tweak-test-upgrade.sh b/scripts/tweak-test-upgrade.sh index e7f54b8c..d9476c2f 100755 --- a/scripts/tweak-test-upgrade.sh +++ b/scripts/tweak-test-upgrade.sh @@ -103,7 +103,7 @@ run_upgrade () { # Get upgrade height, 12 block after (6s) STATUS_INFO=($(./_build/old/centaurid status --home $HOME | jq -r '.NodeInfo.network,.SyncInfo.latest_block_height')) - UPGRADE_HEIGHT=$((STATUS_INFO[1] + 22)) + UPGRADE_HEIGHT=$((STATUS_INFO[1] + 18)) echo "UPGRADE_HEIGHT = $UPGRADE_HEIGHT" tar -cf ./_build/new/centaurid.tar -C ./_build/new centaurid diff --git a/scripts/upgrade/v6_to_7/post_08_wasm.sh b/scripts/upgrade/v6_to_7/post_08_wasm.sh new file mode 100644 index 00000000..0c3dab72 --- /dev/null +++ b/scripts/upgrade/v6_to_7/post_08_wasm.sh @@ -0,0 +1,10 @@ +#!/bin/bash +KEY="mykey" +KEYALGO="secp256k1" +KEYRING="test" +HOME_DIR="mytestnet" + + +sleep 2 + +./_build/new/centaurid query ibc-wasm checksums --home $HOME_DIR \ No newline at end of file diff --git a/scripts/upgrade/v6_to_7/pre_08_wasm.sh b/scripts/upgrade/v6_to_7/pre_08_wasm.sh index d5e41c9b..4058c1ff 100644 --- a/scripts/upgrade/v6_to_7/pre_08_wasm.sh +++ b/scripts/upgrade/v6_to_7/pre_08_wasm.sh @@ -1,4 +1,3 @@ -echo "---> running pre_08_wasm.sh" #!/bin/bash KEY="mykey" KEYALGO="secp256k1"