You are viewing a single comment's thread from:

RE: 一个超级简单的见证人监控报警装置

测试一下

正常时

2025-11-27 17:05:32,291 [INFO] Checking witness 'oflyhigh'...
2025-11-27 17:05:32,365 [INFO] Current missed: 40, Previous: 40
2025-11-27 17:05:32,367 [INFO] 👍 No new missed blocks.
2025-11-27 17:05:32,368 [INFO] GPIO cleanup complete.

模拟丢块时

2025-11-27 17:07:44,384 [INFO] Checking witness 'oflyhigh'...
2025-11-27 17:07:44,459 [INFO] Current missed: 40, Previous: 39
2025-11-27 17:07:44,461 [WARNING] 🚨 Witness missed block! Beeping for 180 seconds.
2025-11-27 17:07:44,464 [INFO] GPIO cleanup complete.

测试没问题后,用crontab部署一下就可以啦
检查频度根据见证人出块频度自己掌握
以后再也不用时不时地刷见证人列表,来看自己有没有丢块啦。