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 the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PeerSyncState
impl Send for PeerSyncState
impl Sync for PeerSyncState
impl Unpin for PeerSyncState
impl UnwindSafe for PeerSyncState
Blanket Implementations
Mutably borrows from an owned value. Read more