Skip to content

Commit

Permalink
cleanup client recovery test script
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Apr 26, 2024
1 parent e3969c8 commit 539ecfc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions ci/tests/recover-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,13 @@ grpcurl -plaintext -d '{"client_id":"07-tendermint-0"}' localhost:9093 ibc.core.
grpcurl -plaintext -d '{"client_id":"07-tendermint-1"}' localhost:9093 ibc.core.client.v1.Query/ClientStatus \
| jq -e '.status == "Expired"'

grpcurl -plaintext -d '{"client_id":"07-tendermint-0"}' localhost:9093 ibc.core.client.v1.Query/ClientState
grpcurl -plaintext -d '{"client_id":"07-tendermint-1"}' localhost:9093 ibc.core.client.v1.Query/ClientState

echo "initiating client recovery"
cd "${BASECOIN_SRC}"
echo "initiating client recovery"
# recovering 07-tendermint-1 with 07-tendermint-0
${BASECOIN_BIN} tx recover --subject-client-id 07-tendermint-1 --substitute-client-id 07-tendermint-0

# wait for the client to recover
sleep 3s

grpcurl -plaintext -d '{"client_id":"07-tendermint-0"}' localhost:9093 ibc.core.client.v1.Query/ClientState
grpcurl -plaintext -d '{"client_id":"07-tendermint-1"}' localhost:9093 ibc.core.client.v1.Query/ClientState

grpcurl -plaintext -d '{"client_id":"07-tendermint-0"}' localhost:9093 ibc.core.client.v1.Query/ClientStatus \
| jq -e '.status == "Active"'
grpcurl -plaintext -d '{"client_id":"07-tendermint-1"}' localhost:9093 ibc.core.client.v1.Query/ClientStatus \
Expand Down

0 comments on commit 539ecfc

Please sign in to comment.