pub struct BatchValidator<P>{ /* private fields */ }
Expand description
The BatchValidator stage is responsible for validating the SingleBatches from the BatchStream AttributesQueue’s consumption.
Implementations§
Source§impl<P> BatchValidator<P>
impl<P> BatchValidator<P>
Sourcepub const fn new(cfg: Arc<RollupConfig>, prev: P) -> Self
pub const fn new(cfg: Arc<RollupConfig>, prev: P) -> Self
Create a new BatchValidator stage.
Trait Implementations§
Source§impl<P> AttributesProvider for BatchValidator<P>
impl<P> AttributesProvider for BatchValidator<P>
Source§fn next_batch<'life0, 'async_trait>(
&'life0 mut self,
parent: L2BlockInfo,
) -> Pin<Box<dyn Future<Output = PipelineResult<SingleBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_batch<'life0, 'async_trait>(
&'life0 mut self,
parent: L2BlockInfo,
) -> Pin<Box<dyn Future<Output = PipelineResult<SingleBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the next valid batch upon the given safe head.
Source§fn is_last_in_span(&self) -> bool
fn is_last_in_span(&self) -> bool
Returns whether the current batch is the last in its span.
Source§impl<P> Debug for BatchValidator<P>
impl<P> Debug for BatchValidator<P>
Source§impl<P> OriginAdvancer for BatchValidator<P>
impl<P> OriginAdvancer for BatchValidator<P>
Source§fn advance_origin<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = PipelineResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn advance_origin<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = PipelineResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Advances the internal state of the lowest stage to the next l1 origin.
This method is the equivalent of the reference implementation
advance_l1_block
.Source§impl<P> OriginProvider for BatchValidator<P>
impl<P> OriginProvider for BatchValidator<P>
Source§impl<P> SignalReceiver for BatchValidator<P>
impl<P> SignalReceiver for BatchValidator<P>
Auto Trait Implementations§
impl<P> Freeze for BatchValidator<P>where
P: Freeze,
impl<P> RefUnwindSafe for BatchValidator<P>where
P: RefUnwindSafe,
impl<P> Send for BatchValidator<P>where
P: Send,
impl<P> Sync for BatchValidator<P>where
P: Sync,
impl<P> Unpin for BatchValidator<P>where
P: Unpin,
impl<P> UnwindSafe for BatchValidator<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more