Skip to content

Commit

Permalink
chore: add static rly version check to add max clock drift
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed May 3, 2024
1 parent d34d6fe commit c040442
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/ibc/setup_ibc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c040442

Please sign in to comment.