MCPcopy Create free account
hub / github.com/base/base / da_backlog_bytes

Method da_backlog_bytes

crates/batcher/encoder/src/encoder.rs:637–648  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

635 }
636
637 fn da_backlog_bytes(&self) -> u64 {
638 let pending_blocks: u64 =
639 self.blocks.iter().skip(self.block_cursor).map(BufferedBlock::estimated_da_bytes).sum();
640 let channels: u64 = self
641 .channels
642 .iter()
643 .filter(|channel| !self.egress.channel_fully_confirmed(channel))
644 .map(Channel::da_backlog_bytes)
645 .sum();
646
647 pending_blocks + channels
648 }
649
650 fn set_blob_override(&mut self, active: bool) {
651 if self.blob_override == active {

Callers

nothing calls this directly

Calls 4

sumMethod · 0.80
skipMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected