From cbba44ff99979cd3187e7168c8887716c1015e7f Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Wed, 26 Apr 2023 14:49:45 -0400 Subject: [PATCH] fix: use proper bash existence check for continuous --- clients/reth/reth.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/reth/reth.sh b/clients/reth/reth.sh index dd00fd11d7..da56e87cd4 100644 --- a/clients/reth/reth.sh +++ b/clients/reth/reth.sh @@ -139,8 +139,8 @@ fi FLAGS="$FLAGS --http --http.addr=0.0.0.0 --http.api=admin,debug,eth,net,web3" FLAGS="$FLAGS --ws --ws.addr=0.0.0.0 --ws.api=admin,debug,eth,net,web3" -# Enable continuous sync if mining is disabled -if [ "$HIVE_MINER" == "" ]; then +# Enable continuous sync if there is no CL (ttd == "") and mining is disabled +if [ -z "${HIVE_MINER}" ] && [ -z "${HIVE_CLIQUE_PRIVATEKEY}" ] && [ -z "${HIVE_TERMINAL_TOTAL_DIFFICULTY}" ]; then # if there is no chain file then we need to sync with the continuous # download mode if [ ! -f /chain.rlp ]; then