MCPcopy Create free account
hub / github.com/BitVM/BitVM / ChainState

Class ChainState

header-chain/src/header_chain.rs:167–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166#[derive(Serialize, Deserialize, Eq, PartialEq, Clone, Debug, BorshDeserialize, BorshSerialize)]
167pub struct ChainState {
168 pub block_height: u32,
169 pub total_work: [u8; 32],
170 pub best_block_hash: [u8; 32],
171 pub current_target_bits: u32,
172 pub epoch_start_time: u32,
173 pub prev_11_timestamps: [u32; 11],
174 pub block_hashes_mmr: MMRGuest,
175}
176
177impl ChainState {
178 pub fn new() -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected