| 165 | |
| 166 | #[derive(Serialize, Deserialize, Eq, PartialEq, Clone, Debug, BorshDeserialize, BorshSerialize)] |
| 167 | pub 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 | |
| 177 | impl ChainState { |
| 178 | pub fn new() -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected