Skip to content

Commit f073a21

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 f073a21

File tree

1 file changed

+28
-23
lines changed

1 file changed

+28
-23
lines changed

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

+28-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,26 @@ 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=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld 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+
echo "Enable node"
993+
# FIXME: use proper binary (not dcld but $DCLD_BIN_OLD)
994+
result=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld tx validator enable-node --from=$account --yes")
995+
check_response "$result" "\"code\": 0"
996+
997+
test_divider
986998

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

10131018
test_divider
10141019

1015-
#echo "Enable node"
1020+
echo "Enable node"
10161021
## 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
1022+
result=$(docker exec "$container" /bin/sh -c "echo test1234 | ./dcld tx validator enable-node --from=$account --yes")
1023+
check_response "$result" "\"code\": 0"
1024+
1025+
test_divider
10211026

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

0 commit comments

Comments
 (0)