Skip to content

Commit 37814c7

Browse files
JuArceMauroToscanoentropidelictaturosati
authored
chore: change contract alerts polling to 5 minutes (#308)
Co-authored-by: Mauro Toscano <12560266+MauroToscano@users.noreply.github.com> Co-authored-by: Mariano A. Nicolini <mariano.nicolini.91@gmail.com> Co-authored-by: Tatu <65305492+srosati@users.noreply.github.com>
1 parent 4650034 commit 37814c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

alerts/contract_alerts.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ do
1616
last_block=$(cast block --rpc-url $RPC_URL -f number)
1717
printf "Last block: %s\n" $last_block
1818

19-
from_block=$(($last_block - 10))
19+
from_block=$(($last_block - 25))
2020

2121
new_batch_logs=$(cast logs --rpc-url $RPC_URL --from-block $from_block --address $CONTRACT_ADDRESS $NEW_BATCH_TOPIC)
2222
if [ -z "$new_batch_logs" ]; then
@@ -30,5 +30,5 @@ do
3030
send_slack_message "🚨 ALERT: No new verified batches in Service Manager since block $from_block"
3131
fi
3232

33-
sleep 100
33+
sleep 300
3434
done

0 commit comments

Comments
 (0)