pub struct SyncProgress {Show 17 fields
pub current_block: U64,
pub highest_block: U64,
pub starting_block: U64,
pub pulled_states: Option<U64>,
pub known_states: Option<U64>,
pub healed_bytecode_bytes: Option<U64>,
pub healed_bytecodes: Option<U64>,
pub healed_trienode_bytes: Option<U64>,
pub healed_trienodes: Option<U64>,
pub healing_bytecode: Option<U64>,
pub healing_trienodes: Option<U64>,
pub synced_account_bytes: Option<U64>,
pub synced_accounts: Option<U64>,
pub synced_bytecode_bytes: Option<U64>,
pub synced_bytecodes: Option<U64>,
pub synced_storage: Option<U64>,
pub synced_storage_bytes: Option<U64>,
}
Expand description
Represents the sync status of the node
Note: while the neo_syncing
RPC response is defined as:
Returns:
Object|Boolean, An object with sync status data or FALSE, when not syncing:
startingBlock: QUANTITY - The block at which the import started (will only be reset, after the sync reached his head) currentBlock: QUANTITY - The current block, same as neo_blockNumber highestBlock: QUANTITY - The estimated highest block
Geth returns additional fields: https://github.com/neo/go-neo/blob/0ce494b60cd00d70f1f9f2dd0b9bfbd76204168a/ethclient/ethclient.go#L597-L617 Struct to track progress of node syncing
Fields§
§current_block: U64
Current block number we’ve processed
highest_block: U64
Highest known block number on the chain
starting_block: U64
Block number we started syncing from
pulled_states: Option<U64>
Number of state entries pulled so far (optional)
known_states: Option<U64>
Total number of known state entries (optional)
healed_bytecode_bytes: Option<U64>
Bytes of bytecodes healed
healed_bytecodes: Option<U64>
Number of bytecode entries healed
healed_trienode_bytes: Option<U64>
Bytes of trie nodes healed
healed_trienodes: Option<U64>
Number of trie nodes healed
healing_bytecode: Option<U64>
Bytecode entries currently healing
healing_trienodes: Option<U64>
Trie nodes currently healing
synced_account_bytes: Option<U64>
Bytes of account data synced
synced_accounts: Option<U64>
Accounts synced
synced_bytecode_bytes: Option<U64>
Bytes of bytecode synced
synced_bytecodes: Option<U64>
Bytecode entries synced
synced_storage: Option<U64>
Storage entries synced
synced_storage_bytes: Option<U64>
Bytes of storage synced
Trait Implementations§
Source§impl Clone for SyncProgress
impl Clone for SyncProgress
Source§fn clone(&self) -> SyncProgress
fn clone(&self) -> SyncProgress
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SyncProgress
impl Debug for SyncProgress
Source§impl<'de> Deserialize<'de> for SyncProgress
impl<'de> Deserialize<'de> for SyncProgress
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 PartialEq for SyncProgress
impl PartialEq for SyncProgress
Source§impl Serialize for SyncProgress
impl Serialize for SyncProgress
impl Eq for SyncProgress
impl StructuralPartialEq for SyncProgress
Auto Trait Implementations§
impl Freeze for SyncProgress
impl RefUnwindSafe for SyncProgress
impl Send for SyncProgress
impl Sync for SyncProgress
impl Unpin for SyncProgress
impl UnwindSafe for SyncProgress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more