Struct ckb_jsonrpc_types::PeerSyncState[][src]

pub struct PeerSyncState {
    pub best_known_header_hash: Option<Byte32>,
    pub best_known_header_number: Option<Uint64>,
    pub last_common_header_hash: Option<Byte32>,
    pub last_common_header_number: Option<Uint64>,
    pub unknown_header_list_size: Uint64,
    pub inflight_count: Uint64,
    pub can_fetch_count: Uint64,
}
Expand description

The chain synchronization state between the local node and a remote node.

Fields

best_known_header_hash: Option<Byte32>

Best known header hash of remote peer.

This is the observed tip of the remote node’s canonical chain.

best_known_header_number: Option<Uint64>

Best known header number of remote peer

This is the block number of the block with the hash best_known_header_hash.

last_common_header_hash: Option<Byte32>

Last common header hash of remote peer.

This is the common ancestor of the local node canonical chain tip and the block best_known_header_hash.

last_common_header_number: Option<Uint64>

Last common header number of remote peer.

This is the block number of the block with the hash last_common_header_hash.

unknown_header_list_size: Uint64

The total size of unknown header list.

Deprecated: this is an internal state and will be removed in a future release.

inflight_count: Uint64

The count of concurrency downloading blocks.

can_fetch_count: Uint64

The count of blocks are available for concurrency download.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.