Skip to content

Commit

Permalink
#303 Upgrade Cosmos-SDK to v0.47.3
Browse files Browse the repository at this point in the history
- Update `cosmovisor start` command

Signed-off-by: Abdulbois <abdulbois.tursunov@dsr-corporation.com>
Signed-off-by: Abdulbois <abdulbois123@gmail.com>
  • Loading branch information
Abdulbois committed Jan 29, 2024
1 parent a195ea8 commit 43e0a4c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ def test_service(host):
"User=cosmovisor",
"Group=dcl",
'Environment="DAEMON_HOME=/var/lib/dcl/.dcl" "DAEMON_NAME=dcld"',
"ExecStart=/usr/bin/cosmovisor start",
"ExecStart=/usr/bin/cosmovisor run start",
]:
assert prop in svc.content_string
2 changes: 1 addition & 1 deletion deployment/cosmovisor.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ User=ubuntu
Environment="DAEMON_HOME=/var/lib/ubuntu/.dcl"
Environment="DAEMON_NAME=dcld"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=true"
ExecStart=/usr/bin/cosmovisor start
ExecStart=/usr/bin/cosmovisor run start

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion deployment/scripts/run_dcl_node
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ function run_node {
echo -e "\tUse 'systemctl status cosmovisor' to get the node service status."
echo "Use 'journalctl -u cosmovisor.service -f' to see node logs."
else
cosmovisor start >./cosmovisor.log 2>&1 &
cosmovisor run start >./cosmovisor.log 2>&1 &
echo "Node has been stared in the backgroud."
fi
}
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
networks:
localnet:
ipv4_address: 192.167.10.2
command: cosmovisor start
command: cosmovisor run start

node1:
image: dcledger
Expand All @@ -46,7 +46,7 @@ services:
networks:
localnet:
ipv4_address: 192.167.10.3
command: cosmovisor start
command: cosmovisor run start

node2:
image: dcledger
Expand All @@ -62,7 +62,7 @@ services:
networks:
localnet:
ipv4_address: 192.167.10.4
command: cosmovisor start
command: cosmovisor run start

node3:
image: dcledger
Expand All @@ -78,7 +78,7 @@ services:
networks:
localnet:
ipv4_address: 192.167.10.5
command: cosmovisor start
command: cosmovisor run start

observer0:
image: dcledger
Expand All @@ -96,7 +96,7 @@ services:
networks:
localnet:
ipv4_address: 192.167.10.6
command: cosmovisor start
command: cosmovisor run start

lightclient0:
image: dcledger
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/cli/validator-demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ docker exec $container mkdir -p "$DCL_DIR"/cosmovisor/genesis/bin
docker exec $container cp -f ./dcld "$DCL_DIR"/cosmovisor/genesis/bin/

echo "$account Start Node \"$node_name\""
docker exec -d $container cosmovisor start
docker exec -d $container cosmovisor run start
sleep 10


Expand Down
2 changes: 1 addition & 1 deletion integration_tests/upgrade/add-new-node-after-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ check_adding_new_node() {
test_divider

echo "5. Start Node \"$node_name\""
docker exec -d $node_name cosmovisor start
docker exec -d $node_name cosmovisor run start

test_divider

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/upgrade/test-upgrade-0.12-to-1.2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ EOF
docker exec $container cp -f ./dcld "$DCL_DIR"/cosmovisor/genesis/bin/

echo "$account Start Node \"$node_name\""
docker exec -d $container cosmovisor start
docker exec -d $container cosmovisor run start
sleep 10

result=$(dcld query validator node --address "$address")
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/upgrade/test-upgrade-1.2-to-1.3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ EOF
docker exec $container cp -f ./dcld "$DCL_DIR"/cosmovisor/genesis/bin/

echo "$account Start Node \"$node_name\""
docker exec -d $container cosmovisor start
docker exec -d $container cosmovisor run start
sleep 10

result=$(dcld query validator node --address "$address")
Expand Down

0 comments on commit 43e0a4c

Please sign in to comment.