Skip to content

Commit 3852cc1

Browse files
authored
Quiet curl to MEV Boost (#7)
1 parent c0ece10 commit 3852cc1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/consensus_tools.sh

100644100755
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,20 +219,21 @@ _is_mevboost_available() {
219219
return 1
220220
fi
221221

222-
if ! command -v curl >/dev/null; then
222+
if ! command -v curl >/dev/null 2>&1; then
223223
echo "[WARN - entrypoint] curl is not installed. Skipping MEV Boost availability check" >&2
224224
return 0
225225
fi
226226

227-
if curl --retry 5 --retry-delay 5 --retry-all-errors "${mevboost_url}"; then
227+
if curl --retry 5 --retry-delay 5 --retry-all-errors "${mevboost_url}" >/dev/null 2>&1; then
228228
echo "[INFO - entrypoint] MEV Boost is available" >&2
229229
return 0
230230
else
231231
echo "[ERROR - entrypoint] MEV Boost is enabled but the package at ${mevboost_url} is not reachable. Disabling MEV Boost..." >&2
232232
curl -X POST -G 'http://my.dappnode/notification-send' \
233233
--data-urlencode 'type=danger' \
234234
--data-urlencode title="${mevboost_url} can not be reached" \
235-
--data-urlencode 'body=Make sure the MEV Boost DNP for this network is available and running'
235+
--data-urlencode 'body=Make sure the MEV Boost DNP for this network is available and running' \
236+
>/dev/null 2>&1
236237
return 1
237238
fi
238239
}

0 commit comments

Comments
 (0)