pub enum BlockOrigin {
Genesis,
NetworkInitialSync,
NetworkBroadcast,
ConsensusBroadcast,
Own,
File,
WarpSync,
GapSync,
}Expand description
Block data origin.
Variants§
Genesis
Genesis block built into the client.
NetworkInitialSync
Block is part of the initial sync with the network.
NetworkBroadcast
Block was broadcasted on the network.
ConsensusBroadcast
Block that was received from the network and validated in the consensus process.
Own
Block that was collated by this node.
File
Block was imported from a file.
WarpSync
Block from warp sync proof, already cryptographically verified.
These blocks have been verified through the warp sync protocol’s finality proofs and are part of the finalized chain. As such, certain consensus verification steps can be safely skipped during import. These are the blocks that are used to verify the era changes and not the target block to which the node is warp syncing to.
GapSync
Block imported during gap sync to fill historical gaps.
Gap sync occurs after warp sync completes, downloading blocks between genesis and the warp sync target to fill in the historical chain.
Trait Implementations§
Source§impl Clone for BlockOrigin
impl Clone for BlockOrigin
Source§fn clone(&self) -> BlockOrigin
fn clone(&self) -> BlockOrigin
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BlockOrigin
impl Debug for BlockOrigin
Source§impl PartialEq for BlockOrigin
impl PartialEq for BlockOrigin
impl Copy for BlockOrigin
impl Eq for BlockOrigin
impl StructuralPartialEq for BlockOrigin
Auto Trait Implementations§
impl Freeze for BlockOrigin
impl RefUnwindSafe for BlockOrigin
impl Send for BlockOrigin
impl Sync for BlockOrigin
impl Unpin for BlockOrigin
impl UnsafeUnpin for BlockOrigin
impl UnwindSafe for BlockOrigin
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> CheckedConversion for T
impl<T> CheckedConversion for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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 moreSource§impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
Source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
Source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
Source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T. Read moreSource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from.Source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
Source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T.