Commit e63f3b61 authored by inphi's avatar inphi

dtl: Periodically log current l2 sync

parent ffbf649c
---
'@eth-optimism/data-transport-layer': patch
---
Add logs displaying current sync from l2
......@@ -119,6 +119,13 @@ export class L2IngestionService extends BaseService<L2IngestionServiceOptions> {
highestSyncedL2BlockNumber === targetL2Block ||
currentL2Block === 0
) {
this.logger.info(
'All Layer 2 (Optimism) transactions are synchronized',
{
currentL2Block,
targetL2Block,
}
)
await sleep(this.options.pollingInterval)
continue
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment