Struct ckb_jsonrpc_types::PeerSyncState
source · 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§
source§impl Clone for PeerSyncState
impl Clone for PeerSyncState
source§fn clone(&self) -> PeerSyncState
fn clone(&self) -> PeerSyncState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PeerSyncState
impl Debug for PeerSyncState
source§impl Default for PeerSyncState
impl Default for PeerSyncState
source§fn default() -> PeerSyncState
fn default() -> PeerSyncState
source§impl<'de> Deserialize<'de> for PeerSyncState
impl<'de> Deserialize<'de> for PeerSyncState
source§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>,
source§impl Hash for PeerSyncState
impl Hash for PeerSyncState
source§impl PartialEq for PeerSyncState
impl PartialEq for PeerSyncState
source§fn eq(&self, other: &PeerSyncState) -> bool
fn eq(&self, other: &PeerSyncState) -> bool
self
and other
values to be equal, and is used
by ==
.