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

pub enum SyncStatus {
    Initial,
    NoSync,
    AwaitingPeers(bool),
    HeaderSync {
        current_height: u64,
        highest_height: u64,
    },
    TxHashsetDownload {
        start_time: DateTime<Utc>,
        prev_update_time: DateTime<Utc>,
        update_time: DateTime<Utc>,
        prev_downloaded_size: u64,
        downloaded_size: u64,
        total_size: u64,
    },
    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: u64highest_height: u64
TxHashsetDownload

Downloading the various txhashsets

Fields of TxHashsetDownload

start_time: DateTime<Utc>prev_update_time: DateTime<Utc>update_time: DateTime<Utc>prev_downloaded_size: u64downloaded_size: u64total_size: u64
TxHashsetSetup

Setting up before validation

TxHashsetKernelsValidation

Validating the kernels

Fields of TxHashsetKernelsValidation

kernels: u64kernels_total: u64
TxHashsetRangeProofsValidation

Validating the range proofs

Fields of TxHashsetRangeProofsValidation

rproofs: u64rproofs_total: u64
TxHashsetSave

Finalizing the new state

TxHashsetDone

State sync finalized

BodySync

Downloading blocks

Fields of BodySync

current_height: u64highest_height: u64
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: Deserialize<'de>, 
[src]

impl<T> Erased for T

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>,