You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: alerts/sender_with_alert.sh
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -230,16 +230,13 @@ for proof in ./aligned_verification_data_$x/*.cbor; do
230
230
fi
231
231
done
232
232
233
-
if [ $verified-eq 1 ];then
234
-
slack_message="$total_number_proofs proofs submitted and verified. We sent $REPETITIONS proofs. Spent amount: $spent_amount ETH ($ $spent_amount_usd) [ ${batch_explorer_urls[@]} ]"
235
-
else
233
+
if [ $verified-ne 1 ];then
234
+
## Send Update to Slack only in case verification failed
236
235
slack_message="$total_number_proofs proofs submitted but not verified. We sent $REPETITIONS proofs. Spent amount: $spent_amount ETH ($ $spent_amount_usd) [ ${batch_explorer_urls[@]} ]"
236
+
echo"$slack_message"
237
+
send_slack_message "$slack_message"
237
238
fi
238
239
239
-
## Send Update to Slack
240
-
echo"$slack_message"
241
-
send_slack_message "$slack_message"
242
-
243
240
if [ $verified-eq 1 ];then
244
241
create_log_entry "SUCCESS""$total_number_proofs proofs submitted and verified ($REPETITIONS sent). Spent $spent_amount ETH ($ $spent_amount_usd) [ ${batch_explorer_urls[@]} ]"
0 commit comments