pub struct GetBlockchainInfoResult {Show 16 fields
pub chain: String,
pub blocks: u64,
pub headers: u64,
pub best_block_hash: BlockHash,
pub difficulty: f64,
pub median_time: u64,
pub verification_progress: f64,
pub initial_block_download: bool,
pub chain_work: Vec<u8>,
pub size_on_disk: u64,
pub pruned: bool,
pub prune_height: Option<u64>,
pub automatic_pruning: Option<bool>,
pub prune_target_size: Option<u64>,
pub softforks: HashMap<String, Softfork>,
pub warnings: String,
}
Expand description
Models the result of “getblockchaininfo”
Fields
chain: String
Current network name as defined in BIP70 (main, test, regtest)
blocks: u64
The current number of blocks processed in the server
headers: u64
The current number of headers we have validated
best_block_hash: BlockHash
The hash of the currently best block
difficulty: f64
The current difficulty
median_time: u64
Median time for the current best block
verification_progress: f64
Estimate of verification progress [0..1]
initial_block_download: bool
Estimate of whether this node is in Initial Block Download mode
chain_work: Vec<u8>
Total amount of work in active chain, in hexadecimal
size_on_disk: u64
The estimated size of the block and undo files on disk
pruned: bool
If the blocks are subject to pruning
prune_height: Option<u64>
Lowest-height complete block stored (only present if pruning is enabled)
automatic_pruning: Option<bool>
Whether automatic pruning is enabled (only present if pruning is enabled)
prune_target_size: Option<u64>
The target size used by pruning (only present if automatic pruning is enabled)
softforks: HashMap<String, Softfork>
Status of softforks in progress
warnings: String
Any network and blockchain warnings.
Trait Implementations
sourceimpl Clone for GetBlockchainInfoResult
impl Clone for GetBlockchainInfoResult
sourcefn clone(&self) -> GetBlockchainInfoResult
fn clone(&self) -> GetBlockchainInfoResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetBlockchainInfoResult
impl Debug for GetBlockchainInfoResult
sourceimpl<'de> Deserialize<'de> for GetBlockchainInfoResult
impl<'de> Deserialize<'de> for GetBlockchainInfoResult
sourcefn 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
sourceimpl Serialize for GetBlockchainInfoResult
impl Serialize for GetBlockchainInfoResult
Auto Trait Implementations
impl RefUnwindSafe for GetBlockchainInfoResult
impl Send for GetBlockchainInfoResult
impl Sync for GetBlockchainInfoResult
impl Unpin for GetBlockchainInfoResult
impl UnwindSafe for GetBlockchainInfoResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more