Skip to content
Snippets Groups Projects
Commit 1a01fe06 authored by Wei Tang's avatar Wei Tang
Browse files

Port over spec header

parent 25e2f6cc
Branches
No related merge requests found
......@@ -45,6 +45,7 @@ mod genesis;
mod storage;
mod consts;
mod attestation;
mod spec;
use rstd::prelude::*;
use primitives::{H256, ValidatorId, OpaqueMetadata};
......
use primitives::H256;
use rstd::prelude::Vec;
use attestation::AttestationRecord;
#[derive(Clone, PartialEq, Eq, Default, SszEncode, SszDecode, SszHash)]
#[cfg_attr(feature = "std", derive(Debug))]
#[ssz_codec(sorted)]
pub struct SpecHeader {
pub parent_hash: H256,
pub slot_number: u64,
pub randao_reveal: H256,
pub attestations: Vec<AttestationRecord>,
pub pow_chain_ref: H256,
pub active_state_root: H256,
pub crystallized_state_root: H256,
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment