[][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,
    TxHashsetValidation {
        kernels: u64,
        kernel_total: u64,
        rproofs: u64,
        rproof_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

TxHashsetValidation

Validating the full state

Fields of TxHashsetValidation

kernels: u64kernel_total: u64rproofs: u64rproof_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 Eq for SyncStatus[src]

impl PartialEq<SyncStatus> for SyncStatus[src]

impl Debug for SyncStatus[src]

impl Serialize for SyncStatus[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

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

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T

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

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

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

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