diff --git a/yarn-project/archiver/src/modules/instrumentation.ts b/yarn-project/archiver/src/modules/instrumentation.ts index f3d4d4a03b41..4e031872ca35 100644 --- a/yarn-project/archiver/src/modules/instrumentation.ts +++ b/yarn-project/archiver/src/modules/instrumentation.ts @@ -136,7 +136,7 @@ export class ArchiverInstrumentation { } this.syncDurationPerCheckpoint.record(Math.ceil(syncTimePerCheckpoint)); - this.blockHeight.record(Math.max(...blocks.map(b => b.number))); + this.blockHeight.record(Math.max(...blocks.map(b => b.number)), { [Attributes.STATUS]: 'checkpointed' }); this.checkpointHeight.record(Math.max(...blocks.map(b => b.checkpointNumber))); this.syncBlockCount.add(blocks.length); } diff --git a/yarn-project/archiver/src/modules/l1_synchronizer.ts b/yarn-project/archiver/src/modules/l1_synchronizer.ts index f31f08cd0658..9ef83634d899 100644 --- a/yarn-project/archiver/src/modules/l1_synchronizer.ts +++ b/yarn-project/archiver/src/modules/l1_synchronizer.ts @@ -973,10 +973,10 @@ export class ArchiverL1Synchronizer implements Traceable { ), ); - if (checkpointsToAdd.length > 0) { + if (validCheckpoints.length > 0) { this.instrumentation.processNewCheckpointedBlocks( - processDuration / checkpointsToAdd.length, - checkpointsToAdd.flatMap(c => c.checkpoint.blocks), + processDuration / validCheckpoints.length, + validCheckpoints.flatMap(c => c.checkpoint.blocks), ); }