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) -> BatchValidator<P>
pub const fn new(cfg: Arc<RollupConfig>, prev: P) -> BatchValidator<P>
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 = Result<SingleBatch, PipelineErrorKind>> + Send + 'async_trait>>where
'life0: 'async_trait,
BatchValidator<P>: 'async_trait,
fn next_batch<'life0, 'async_trait>(
&'life0 mut self,
parent: L2BlockInfo,
) -> Pin<Box<dyn Future<Output = Result<SingleBatch, PipelineErrorKind>> + Send + 'async_trait>>where
'life0: 'async_trait,
BatchValidator<P>: '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 = Result<(), PipelineErrorKind>> + Send + 'async_trait>>where
'life0: 'async_trait,
BatchValidator<P>: 'async_trait,
fn advance_origin<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), PipelineErrorKind>> + Send + 'async_trait>>where
'life0: 'async_trait,
BatchValidator<P>: '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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more