Skip to content

Commit

Permalink
Taztingo/1620 fix relayer restart (#1621)
Browse files Browse the repository at this point in the history
* Added change to entrypoint to first check for connections on local before initializing.

* Updated changelog.
  • Loading branch information
Taztingo authored Jul 7, 2023
1 parent a934137 commit 9f99058
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

* Update ibcnet ports so they don't conflict with host machine. [#1622](https://github.com/provenance-io/provenance/issues/1622)

### Bug Fixes

* Fix ibcnet relayer creating multiple connections on restart [#1620](https://github.com/provenance-io/provenance/issues/1620).

---

## [v1.16.0](https://github.com/provenance-io/provenance/releases/tag/v1.16.0) - 2023-06-23
Expand Down
9 changes: 7 additions & 2 deletions networks/ibc/blockchain-relayer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
export RELAYER_HOME="/relayer"
export RELAY_PATH="local_local2"

# Setup the connection, client, and channel
rly tx link "$RELAY_PATH" --home "$RELAYER_HOME"
# Setup the connection, client, and channel on first run
PATH_COUNT=$(rly --home "$RELAYER_HOME" q connections local | wc -l)
if [[ "$PATH_COUNT" -eq 0 ]];then
echo "Initializing the relayer"
rly tx link "$RELAY_PATH" --home "$RELAYER_HOME"
fi

# Start the relayer
echo "Starting the relayer"
rly start "$RELAY_PATH" -p events --home "$RELAYER_HOME"

0 comments on commit 9f99058

Please sign in to comment.