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

Method next_batch

crates/consensus/protocol/src/batch/reader.rs:146–148  ·  view source on GitHub ↗

Pulls out the next batch from the reader.

(&mut self, cfg: &RollupConfig)

Source from the content-addressed store, hash-verified

144
145 /// Pulls out the next batch from the reader.
146 pub fn next_batch(&mut self, cfg: &RollupConfig) -> Option<Batch> {
147 self.next_batch_strict(cfg).ok().flatten()
148 }
149
150 /// Pulls out the next batch from the reader, preserving decode failures.
151 pub fn next_batch_strict(

Calls 2

okMethod · 0.80
next_batch_strictMethod · 0.80