Struct ethsync::SyncStatus [] [src]

pub struct SyncStatus {
    pub state: SyncState,
    pub protocol_version: u8,
    pub network_id: u64,
    pub start_block_number: BlockNumber,
    pub last_imported_block_number: Option<BlockNumber>,
    pub highest_block_number: Option<BlockNumber>,
    pub blocks_total: BlockNumber,
    pub blocks_received: BlockNumber,
    pub num_peers: usize,
    pub num_active_peers: usize,
    pub mem_used: usize,
    pub num_snapshot_chunks: usize,
    pub snapshot_chunks_done: usize,
    pub last_imported_old_block_number: Option<BlockNumber>,
}

Syncing status and statistics

Fields

State

Syncing protocol version. That's the maximum protocol version we connect to.

The underlying p2p network version.

BlockChain height for the moment the sync started.

Last fully downloaded and imported block number (if any).

Highest block number in the download queue (if any).

Total number of blocks for the sync process.

Number of blocks downloaded so far.

Total number of connected peers

Total number of active peers.

Heap memory used in bytes.

Snapshot chunks

Snapshot chunks downloaded

Last fully downloaded and imported ancient block number (if any).

Methods

impl SyncStatus
[src]

Indicates if snapshot download is in progress

Returns max no of peers to display in informants

Is it doing a major sync?

Trait Implementations

impl Clone for SyncStatus
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for SyncStatus
[src]

impl BinaryConvertable for SyncStatus where SyncStatus: Copy