Skip to content

Commit 13e5a57

Browse files
committed
chore: add warning if heartbeat fails before processing blocks
1 parent 185d8c5 commit 13e5a57

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

rofl_oracle/header_oracle.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,13 @@ async def watch_addresses_for_interactions(self) -> None:
580580
# Always update timer, avoid retry storm for non-critical block
581581
self.last_heartbeat_time = time.time()
582582

583+
elif heartbeat_due:
584+
# Heartbeat due but scan failed before processing any blocks
585+
logger.warning(
586+
"Heartbeat due but scan failed before processing any blocks"
587+
)
588+
self.last_heartbeat_time = time.time()
589+
583590
# Update scan position to last successfully processed block
584591
if last_successful_block >= start_block:
585592
self.last_scanned_block = last_successful_block

0 commit comments

Comments
 (0)