Skip to content

Commit 083ca7a

Browse files
committed
fix: use proper bash existence check for continuous (ethereum#21)
1 parent 8893ef4 commit 083ca7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clients/reth/reth.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ fi
139139
FLAGS="$FLAGS --http --http.addr=0.0.0.0 --http.api=admin,debug,eth,net,web3"
140140
FLAGS="$FLAGS --ws --ws.addr=0.0.0.0 --ws.api=admin,debug,eth,net,web3"
141141

142-
# Enable continuous sync if mining is disabled
143-
if [ "$HIVE_MINER" == "" ]; then
142+
# Enable continuous sync if there is no CL (ttd == "") and mining is disabled
143+
if [ -z "${HIVE_MINER}" ] && [ -z "${HIVE_CLIQUE_PRIVATEKEY}" ] && [ -z "${HIVE_TERMINAL_TOTAL_DIFFICULTY}" ]; then
144144
# if there is no chain file then we need to sync with the continuous
145145
# download mode
146146
if [ ! -f /chain.rlp ]; then

0 commit comments

Comments
 (0)