Skip to content

Commit

Permalink
fix: be more tolerant of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Feb 15, 2021
1 parent 7f2bd5b commit 967832e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cosmic-swingset/bin/ag-nchainz
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,11 @@ start-relayer)
fi

echo "$ rly config add-paths $PATHCONFIG/"
rly config add-paths $PATHCONFIG/
while ! rly config add-paths $PATHCONFIG/; do
sleep 3
done

echo "$ rly link $path --timeout=3s -d"
try=0
while ! rly tx link $path --timeout=3s -d >> "nchainz/logs/$path.log" 2>&1; do
try=$(( $try + 1 ))
Expand Down

0 comments on commit 967832e

Please sign in to comment.