Skip to content

Commit 53157ac

Browse files
committed
record missing flashblocks in more places
1 parent 0ec0644 commit 53157ac

File tree

1 file changed

+7
-0
lines changed
  • crates/op-rbuilder/src/builders/flashblocks

1 file changed

+7
-0
lines changed

crates/op-rbuilder/src/builders/flashblocks/payload.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,9 @@ where
460460
ctx.metrics
461461
.flashblock_count
462462
.record(ctx.flashblock_index() as f64);
463+
ctx.metrics.missing_flashblocks_count.record(
464+
flashblocks_per_block.saturating_sub(ctx.flashblock_index()) as f64,
465+
);
463466
debug!(
464467
target: "payload_builder",
465468
message = "Payload building complete, job cancelled during execution"
@@ -518,6 +521,10 @@ where
518521
ctx.metrics
519522
.flashblock_count
520523
.record(ctx.flashblock_index() as f64);
524+
ctx.metrics.missing_flashblocks_count.record(
525+
flashblocks_per_block.saturating_sub(ctx.flashblock_index())
526+
as f64,
527+
);
521528
debug!(
522529
target: "payload_builder",
523530
message = "Payload building complete, job cancelled during execution"

0 commit comments

Comments
 (0)