Summary
When the indexer starts, operators need to know immediately how far behind it is from the current network ledger. A startup log showing the last processed ledger and the lag in ledgers makes it easy to assess sync state without querying the database.
Scope
- On indexer startup, emit a structured info log with fields:
last_processed_ledger, current_network_ledger, lag_in_ledgers, estimated_catchup_seconds
estimated_catchup_seconds calculated as lag_in_ledgers * 5 (5 seconds per ledger)
- If no ledger has been processed yet emit a warning indicating a fresh start
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
When the indexer starts, operators need to know immediately how far behind it is from the current network ledger. A startup log showing the last processed ledger and the lag in ledgers makes it easy to assess sync state without querying the database.
Scope
last_processed_ledger,current_network_ledger,lag_in_ledgers,estimated_catchup_secondsestimated_catchup_secondscalculated aslag_in_ledgers * 5(5 seconds per ledger)Acceptance Criteria
estimated_catchup_secondsis correctly calculated from the lagETA: 12 hours
Coordinate on Telegram