From c0404424303e91e92a3f5360f62e57e2ad7d83b9 Mon Sep 17 00:00:00 2001 From: artemijspavlovs <19916123+artemijspavlovs@users.noreply.github.com> Date: Fri, 3 May 2024 23:42:50 +0300 Subject: [PATCH] chore: add static rly version check to add max clock drift --- scripts/ibc/setup_ibc.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/ibc/setup_ibc.sh b/scripts/ibc/setup_ibc.sh index 7ecda121..c1c5be3b 100755 --- a/scripts/ibc/setup_ibc.sh +++ b/scripts/ibc/setup_ibc.sh @@ -95,7 +95,11 @@ echo '--------------------------------- Creating IBC path... ------------------- rly paths new "$ROLLAPP_CHAIN_ID" "$SETTLEMENT_CHAIN_ID" "$RELAYER_PATH" --src-port "$IBC_PORT" --dst-port "$IBC_PORT" --version "$IBC_VERSION" -rly tx link "$RELAYER_PATH" --src-port "$IBC_PORT" --dst-port "$IBC_PORT" --version "$IBC_VERSION" +if [ "$(rly version -j | jq -r .version)" == "0.3.0-v2.5.2-relayer" ]; then + rly tx link "$RELAYER_PATH" --src-port "$IBC_PORT" --dst-port "$IBC_PORT" --version "$IBC_VERSION" --max-clock-drift 70m +else + rly tx link "$RELAYER_PATH" --src-port "$IBC_PORT" --dst-port "$IBC_PORT" --version "$IBC_VERSION" +fi # Channel is currently not created in the tx link since we changed the relayer to support on demand blocks # Which messed up with channel creation as part of tx link. rly tx channel "$RELAYER_PATH"