pub struct L1State {
pub current_l1: Option<BlockInfo>,
pub current_l1_finalized: Option<BlockInfo>,
pub head_l1: Option<BlockInfo>,
pub safe_l1: Option<BlockInfo>,
pub finalized_l1: Option<BlockInfo>,
}Expand description
The L1 watcher state accessible from RPC queries.
Fields§
§current_l1: Option<BlockInfo>The current L1 block.
This is the L1 block that the derivation process is last idled at.
This may not be fully derived into L2 data yet.
The safe L2 blocks were produced/included fully from the L1 chain up to but excluding
this L1 block. If the node is synced, this matches the head_l1, minus the verifier
confirmation distance.
current_l1_finalized: Option<BlockInfo>The current L1 finalized block.
This is a legacy sync-status attribute. This is deprecated.
A previous version of the L1 finalization-signal was updated only after the block was
retrieved by number. This attribute just matches finalized_l1 now.
head_l1: Option<BlockInfo>The L1 head block ref.
The head is not guaranteed to build on the other L1 sync status fields, as the node may be in progress of resetting to adapt to a L1 reorg.
safe_l1: Option<BlockInfo>The L1 safe head block ref.
finalized_l1: Option<BlockInfo>The finalized L1 block ref.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for L1State
impl RefUnwindSafe for L1State
impl Send for L1State
impl Sync for L1State
impl Unpin for L1State
impl UnwindSafe for L1State
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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