Skip to content

Commit 665ff2f

Browse files
chores(readme): update instruction for running rly v0.3.3-v2.5.2-relayer (#249)
Co-authored-by: Omri <[email protected]>
1 parent fb872bb commit 665ff2f

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ rollapp-evm start
202202
### Install dymension relayer
203203

204204
```shell
205-
git clone https://github.com/dymensionxyz/go-relayer.git --branch v0.3.0-v2.5.2-relayer
205+
git clone https://github.com/dymensionxyz/go-relayer.git --branch v0.3.3-v2.5.2-relayer
206206
cd go-relayer && make install
207207
```
208208

scripts/ibc/setup_ibc.sh

+21-2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jq --arg rpc "$SETTLEMENT_RPC_FOR_RELAYER" '.value."rpc-addr" = $rpc' "$HUB_IBC_
6363
rly chains add --file "$ROLLAPP_IBC_CONF_FILE" "$ROLLAPP_CHAIN_ID"
6464
rly chains add --file "$HUB_IBC_CONF_FILE" "$SETTLEMENT_CHAIN_ID"
6565

66+
echo -e '--------------------------------- Setting min-loop-duration to 100ms in rly config... --------------------------------'
67+
sed -i.bak '/min-loop-duration:/s/.*/ min-loop-duration: 100ms/' "$RLY_CONFIG_FILE"
68+
6669
echo -e '--------------------------------- Creating keys for rly... --------------------------------'
6770

6871
rly keys add "$ROLLAPP_CHAIN_ID" "$RELAYER_KEY_FOR_ROLLAP" --coin-type 60
@@ -94,11 +97,27 @@ echo '--------------------------------- Creating IBC path... -------------------
9497

9598
rly paths new "$ROLLAPP_CHAIN_ID" "$SETTLEMENT_CHAIN_ID" "$RELAYER_PATH" --src-port "$IBC_PORT" --dst-port "$IBC_PORT" --version "$IBC_VERSION"
9699

97-
rly tx link "$RELAYER_PATH" --src-port "$IBC_PORT" --dst-port "$IBC_PORT" --version "$IBC_VERSION"
100+
rly tx link "$RELAYER_PATH" --src-port "$IBC_PORT" --dst-port "$IBC_PORT" --version "$IBC_VERSION" --max-clock-drift 70m
98101
# Channel is currently not created in the tx link since we changed the relayer to support on demand blocks
99102
# Which messed up with channel creation as part of tx link.
100103
rly tx channel "$RELAYER_PATH"
101104

102105
echo '# -------------------------------- IBC channel established ------------------------------- #'
103106
echo "Channel Information:"
104-
echo "$(rly q channels "$ROLLAPP_CHAIN_ID" | jq '{ "rollapp-channel": .channel_id, "hub-channel": .counterparty.channel_id }')"
107+
108+
channel_info=$(rly q channels "$ROLLAPP_CHAIN_ID" | jq '{ "rollapp-channel": .channel_id, "hub-channel": .counterparty.channel_id }')
109+
rollapp_channel=$(echo "$channel_info" | jq -r '.["rollapp-channel"]')
110+
hub_channel=$(echo "$channel_info" | jq -r '.["hub-channel"]')
111+
112+
echo "$channel_info"
113+
114+
echo -e '--------------------------------- Set channel-filter --------------------------------'
115+
116+
if [ -z "$rollapp_channel" ] || [ -z "$hub_channel" ]; then
117+
echo "Both channels must be provided. Something is wrong. Exiting."
118+
exit 1
119+
fi
120+
121+
sed -i.bak '/rule:/s/.*/ rule: "allowlist"/' "$RLY_CONFIG_FILE"
122+
sed -i.bak '/channel-list:/s/.*/ channel-list: ["'"$rollapp_channel"'","'"$hub_channel"'"]/' "$RLY_CONFIG_FILE"
123+
echo "Config file updated successfully."

0 commit comments

Comments
 (0)