diff --git a/deployments/relayer/README.md b/deployments/relayer/README.md index 8052b22e13..0ce4761a52 100644 --- a/deployments/relayer/README.md +++ b/deployments/relayer/README.md @@ -34,6 +34,21 @@ Given the rapid pace of development, it's possible that proto definitions are out of sync between testnet & preview, in which case there may be errors. To debug, consider running a local devnet and linking it with preview. +## Verifying IBC functionality between chains + +There are three key stages to working IBC: clients, channels, and connections. +Use the commands below to evaluate whether each step is correctly configured: + +``` +pcli -n http://localhost:8080 q ibc client 07-tendermint-0 +pcli -n http://localhost:8080 q ibc channel transfer channel-0 +pcli -n http://localhost:8080 q ibc connection connection-0 +``` + +Remember to check the same on the corresponding counterparty chain, e.g. testnet-preview. +The `client` values may not be the same between chains, so try incrementing the values +until no results are found as a surrogate for querying via pcli. + ## Updating proto definitions in relayer Sometimes the protos between preview & testnet get out of sync. When this happens, we must submit a PR upstream to the relayer repo. See [example here](https://github.com/cosmos/relayer/pull/1170), diff --git a/deployments/relayer/build-path b/deployments/relayer/build-path index cb4b08ea84..958983f17a 100755 --- a/deployments/relayer/build-path +++ b/deployments/relayer/build-path @@ -22,3 +22,11 @@ done < <(rly paths list --json | jq 'keys | join ("\n")' -r | sort -r) visible_log "Finished! No errors encountered setting up link. Available paths:" rly paths list + +visible_log "These commands should all yield results:" + +cat <&2 echo "Adding chain specs to relayer config..." -rly chains add-dir configs/ +find ./configs/ -type f -iname 'penumbra*.json' -exec \ + rly chains add -f {} \; # Ideally we wouldn't need to bother with generating keys for the relayer paths, # because Penumbra hasn't implemented fees yet, so there's no need for a wallet to pay out of.