Commit 370b77e5 authored by George Knee's avatar George Knee Committed by GitHub

op-batcher: use `pendingBlocks()` for `s.metr.RecordL2BlocksAdded` (#13329)

* use pendingBlocks() for s.metr.RecordL2BlocksAdded

* use pendingBlocks when channel is opened
parent 18665405
......@@ -328,7 +328,7 @@ func (s *channelManager) ensureChannelWithSpace(l1Head eth.BlockID) error {
"max_frame_size", cfg.MaxFrameSize,
"use_blobs", cfg.UseBlobs,
)
s.metr.RecordChannelOpened(pc.ID(), s.blocks.Len())
s.metr.RecordChannelOpened(pc.ID(), s.pendingBlocks())
return nil
}
......@@ -380,7 +380,7 @@ func (s *channelManager) processBlocks() error {
s.metr.RecordL2BlocksAdded(latestL2ref,
blocksAdded,
s.blocks.Len(),
s.pendingBlocks(),
s.currentChannel.InputBytes(),
s.currentChannel.ReadyBytes())
s.log.Debug("Added blocks to channel",
......
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