[][src]Struct sc_chain_spec::LightSyncState

pub struct LightSyncState<Block: BlockT> {
    pub finalized_block_header: <Block as BlockT>::Header,
    pub babe_epoch_changes: EpochChangesFor<Block, Epoch>,
    pub babe_finalized_block_weight: BabeBlockWeight,
    pub grandpa_authority_set: AuthoritySet<<Block as BlockT>::Hash, NumberFor<Block>>,
}

Hardcoded infomation that allows light clients to sync quickly.

Fields

finalized_block_header: <Block as BlockT>::Header

The header of the best finalized block.

babe_epoch_changes: EpochChangesFor<Block, Epoch>

The epoch changes tree for babe.

babe_finalized_block_weight: BabeBlockWeight

The babe weight of the finalized block.

grandpa_authority_set: AuthoritySet<<Block as BlockT>::Hash, NumberFor<Block>>

The authority set for grandpa.

Implementations

impl<Block: BlockT> LightSyncState<Block>[src]

pub fn to_serializable(&self) -> SerializableLightSyncState[src]

Convert into a SerializableLightSyncState.

pub fn from_serializable(
    serialized: &SerializableLightSyncState
) -> Result<Self, Error>
[src]

Convert from a SerializableLightSyncState.

Auto Trait Implementations

impl<Block> RefUnwindSafe for LightSyncState<Block> where
    <Block as Block>::Hash: RefUnwindSafe,
    <Block as Block>::Header: RefUnwindSafe,
    <<Block as Block>::Header as Header>::Number: RefUnwindSafe
[src]

impl<Block> Send for LightSyncState<Block> where
    <Block as Block>::Hash: Send,
    <Block as Block>::Header: Send,
    <<Block as Block>::Header as Header>::Number: Send
[src]

impl<Block> Sync for LightSyncState<Block> where
    <Block as Block>::Hash: Sync,
    <Block as Block>::Header: Sync,
    <<Block as Block>::Header as Header>::Number: Sync
[src]

impl<Block> Unpin for LightSyncState<Block> where
    <Block as Block>::Hash: Unpin,
    <Block as Block>::Header: Unpin,
    <<Block as Block>::Header as Header>::Number: Unpin
[src]

impl<Block> UnwindSafe for LightSyncState<Block> where
    <Block as Block>::Hash: RefUnwindSafe + UnwindSafe,
    <Block as Block>::Header: UnwindSafe,
    <<Block as Block>::Header as Header>::Number: RefUnwindSafe + UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]