Skip to content

Commit ed507ab

Browse files
committed
#303 Upgrade Cosmos-SDK to v0.47.8
- Setup Validator node with latest binary Signed-off-by: Abdulbois <abdulbois.tursunov@dsr-corporation.com> Signed-off-by: Abdulbois <abdulbois123@gmail.com>
1 parent b7cfb33 commit ed507ab

File tree

1 file changed

+34
-23
lines changed

1 file changed

+34
-23
lines changed

integration_tests/upgrade/03-test-upgrade-1.2-to-1.4.sh

+34-23
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
set -euo pipefail
16+
#set -euo pipefail
1717
source integration_tests/cli/common.sh
1818

1919
# Upgrade constants
@@ -26,11 +26,11 @@ binary_version_new="v1.4.0-dev3"
2626
wget -O dcld_old "https://github.com/zigbee-alliance/distributed-compliance-ledger/releases/download/$binary_version_old/dcld"
2727
chmod ugo+x dcld_old
2828

29-
wget -O dcld "https://github.com/zigbee-alliance/distributed-compliance-ledger/releases/download/$binary_version_new/dcld"
30-
chmod ugo+x dcld
29+
wget -O dcld_new "https://github.com/zigbee-alliance/distributed-compliance-ledger/releases/download/$binary_version_new/dcld"
30+
chmod ugo+x dcld_new
3131

3232
DCLD_BIN_OLD="./dcld_old"
33-
DCLD_BIN_NEW="./dcld"
33+
DCLD_BIN_NEW="./dcld_new"
3434
$DCLD_BIN_NEW config broadcast-mode sync
3535
########################################################################################
3636

@@ -976,21 +976,32 @@ check_response "$result" "\"code\": 0"
976976
test_divider
977977

978978
# VALIDATOR_NODE
979-
#echo "Disable node"
980-
## FIXME: use proper binary (not dcld but $DCLD_BIN_OLD)
981-
#result=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld tx validator disable-node --from=$account --yes")
982-
#docker logs node0 -n 50
983-
#check_response "$result" "\"code\": 0"
984-
#
985-
#test_divider
979+
echo "Disable node"
980+
# FIXME: use proper binary (not dcld but $DCLD_BIN_OLD)
981+
result=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld status")
982+
echo "Validator status $result"
983+
984+
result=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld version")
985+
echo "Validator version $result"
986+
result=$(echo $passphrase | $DCLD_BIN_NEW tx validator disable-node --from=$account --yes)
987+
docker logs node0 -n 50
988+
check_response "$result" "\"code\": 0"
989+
990+
test_divider
991+
992+
result=$(docker exec node0 /bin/sh -c "echo test1234 | ./dcld status")
993+
echo "Node0 status $result"
994+
995+
result=$(docker exec node0 /bin/sh -c "echo test1234 | ./dcld version")
996+
echo "Node0 version $result"
997+
998+
echo "Enable node"
999+
# FIXME: use proper binary (not dcld but $DCLD_BIN_OLD)
1000+
result=$(echo $passphrase | $DCLD_BIN_NEW tx validator enable-node --from=$account --yes)
1001+
check_response "$result" "\"code\": 0"
1002+
1003+
test_divider
9861004

987-
#echo "Enable node"
988-
## FIXME: use proper binary (not dcld but $DCLD_BIN_OLD)
989-
#result=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld tx validator enable-node --from=$account --yes")
990-
#check_response "$result" "\"code\": 0"
991-
#
992-
#test_divider
993-
#
9941005
echo "Approve disable node"
9951006
result=$(echo $passphrase | $DCLD_BIN_NEW tx validator approve-disable-node --address=$validator_address --from=$trustee_account_2 --yes)
9961007
result=$(get_txn_result "$result")
@@ -1012,12 +1023,12 @@ check_response "$result" "\"code\": 0"
10121023

10131024
test_divider
10141025

1015-
#echo "Enable node"
1026+
echo "Enable node"
10161027
## FIXME: use proper binary (not dcld but $DCLD_BIN_OLD)
1017-
#result=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld tx validator enable-node --from=$account --yes")
1018-
#check_response "$result" "\"code\": 0"
1019-
#
1020-
#test_divider
1028+
result=$(echo $passphrase | $DCLD_BIN_NEW tx validator enable-node --from=$account --yes)
1029+
check_response "$result" "\"code\": 0"
1030+
1031+
test_divider
10211032

10221033
echo "Propose disable node"
10231034
result=$(echo $passphrase | $DCLD_BIN_OLD tx validator propose-disable-node --address=$validator_address --from=$trustee_account_1 --yes)

0 commit comments

Comments
 (0)