Skip to content

Commit 3eff4e7

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 3eff4e7

File tree

1 file changed

+40
-23
lines changed

1 file changed

+40
-23
lines changed

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

+40-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,38 @@ 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+
docker cp $DCLD_BIN_NEW "$container":"$DCL_USER_HOME"/dcld
980+
981+
echo "Disable node"
982+
result=$(docker exec node0 /bin/sh -c "echo test1234 | dcld status")
983+
echo "Node0 status $result"
984+
985+
result=$(docker exec node0 /bin/sh -c "echo test1234 | dcld version")
986+
echo "Node0 version $result"
987+
988+
# FIXME: use proper binary (not dcld but $DCLD_BIN_OLD)
989+
result=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld status")
990+
echo "Validator status $result"
991+
992+
result=$(docker exec "$container" /bin/sh -c "echo test1234 | dcld status")
993+
echo "Validator status 2 $result"
994+
995+
result=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld version")
996+
echo "Validator version $result"
997+
result=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld tx validator disable-node --from=$account --yes")
998+
docker logs node0 -n 50
999+
check_response "$result" "\"code\": 0"
1000+
1001+
test_divider
1002+
1003+
1004+
echo "Enable node"
1005+
# FIXME: use proper binary (not dcld but $DCLD_BIN_OLD)
1006+
result=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld tx validator enable-node --from=$account --yes")
1007+
check_response "$result" "\"code\": 0"
1008+
1009+
test_divider
9861010

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-
#
9941011
echo "Approve disable node"
9951012
result=$(echo $passphrase | $DCLD_BIN_NEW tx validator approve-disable-node --address=$validator_address --from=$trustee_account_2 --yes)
9961013
result=$(get_txn_result "$result")
@@ -1012,12 +1029,12 @@ check_response "$result" "\"code\": 0"
10121029

10131030
test_divider
10141031

1015-
#echo "Enable node"
1032+
echo "Enable node"
10161033
## 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
1034+
result=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld tx validator enable-node --from=$account --yes")
1035+
check_response "$result" "\"code\": 0"
1036+
1037+
test_divider
10211038

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

0 commit comments

Comments
 (0)