pub struct GetBlockchainInfo {Show 16 fields
pub chain: Network,
pub blocks: u32,
pub headers: u32,
pub best_block_hash: BlockHash,
pub difficulty: f64,
pub median_time: u32,
pub verification_progress: f64,
pub initial_block_download: bool,
pub chain_work: Work,
pub size_on_disk: u64,
pub pruned: bool,
pub prune_height: Option<u32>,
pub automatic_pruning: Option<bool>,
pub prune_target_size: Option<u32>,
pub softforks: BTreeMap<String, Softfork>,
pub warnings: Vec<String>,
}Expand description
Models the result of JSON-RPC method getblockchaininfo.
Fields§
§chain: NetworkCurrent network name as defined in BIP70 (main, test, signet, regtest).
blocks: u32The current number of blocks processed in the server.
headers: u32The current number of headers we have validated.
best_block_hash: BlockHashThe hash of the currently best block.
difficulty: f64The current difficulty.
median_time: u32Median time for the current best block.
verification_progress: f64Estimate of verification progress (between 0 and 1).
initial_block_download: boolEstimate of whether this node is in Initial Block Download (IBD) mode.
chain_work: WorkTotal amount of work in active chain.
size_on_disk: u64The estimated size of the block and undo files on disk.
pruned: boolIf the blocks are subject to pruning.
prune_height: Option<u32>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<u32>The target size used by pruning (only present if automatic pruning is enabled).
softforks: BTreeMap<String, Softfork>Status of softforks in progress, maps softfork name -> Softfork.
warnings: Vec<String>Any network and blockchain warnings.
Trait Implementations§
Source§impl Clone for GetBlockchainInfo
impl Clone for GetBlockchainInfo
Source§fn clone(&self) -> GetBlockchainInfo
fn clone(&self) -> GetBlockchainInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more