[][src]Enum grin_chain::types::SyncStatus

pub enum SyncStatus {
    Initial,
    NoSync,
    AwaitingPeers(bool),
    HeaderSync {
        current_height: u64,
        highest_height: u64,
    },
    TxHashsetDownload(TxHashsetDownloadStats),
    TxHashsetSetup,
    TxHashsetKernelsValidation {
        kernels: u64,
        kernels_total: u64,
    },
    TxHashsetRangeProofsValidation {
        rproofs: u64,
        rproofs_total: u64,
    },
    TxHashsetSave,
    TxHashsetDone,
    BodySync {
        current_height: u64,
        highest_height: u64,
    },
    Shutdown,
}

Various status sync can be in, whether it's fast sync or archival.

Variants

Initial

Initial State (we do not yet know if we are/should be syncing)

NoSync

Not syncing

AwaitingPeers(bool)

Not enough peers to do anything yet, boolean indicates whether we should wait at all or ignore and start ASAP

HeaderSync

Downloading block headers

Fields of HeaderSync

current_height: u64

current node height

highest_height: u64

height of the most advanced peer

TxHashsetDownload(TxHashsetDownloadStats)

Downloading the various txhashsets

TxHashsetSetup

Setting up before validation

TxHashsetKernelsValidation

Validating the kernels

Fields of TxHashsetKernelsValidation

kernels: u64

kernels validated

kernels_total: u64

kernels in total

TxHashsetRangeProofsValidation

Validating the range proofs

Fields of TxHashsetRangeProofsValidation

rproofs: u64

range proofs validated

rproofs_total: u64

range proofs in total

TxHashsetSave

Finalizing the new state

TxHashsetDone

State sync finalized

BodySync

Downloading blocks

Fields of BodySync

current_height: u64

current node height

highest_height: u64

height of the most advanced peer

Shutdown

Shutdown

Trait Implementations

impl Clone for SyncStatus[src]

impl Copy for SyncStatus[src]

impl Debug for SyncStatus[src]

impl<'de> Deserialize<'de> for SyncStatus[src]

impl Eq for SyncStatus[src]

impl PartialEq<SyncStatus> for SyncStatus[src]

impl Serialize for SyncStatus[src]

impl StructuralEq for SyncStatus[src]

impl StructuralPartialEq for SyncStatus[src]

Auto Trait Implementations

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> CloneAny for T where
    T: Clone + Any

impl<T> DebugAny for T where
    T: Any + Debug

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> UnsafeAny for T where
    T: Any

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