pub fn empty(spec: &ChainSpec) -> Self {
        BeaconBlock {
            slot: spec.genesis_slot,
            proposer_index: 0,
            parent_root: Hash256::zero(),
            state_root: Hash256::zero(),
            body: BeaconBlockBody {
                randao_reveal: Signature::empty(),
                eth1_data: Eth1Data {
                    deposit_root: Hash256::zero(),
                    block_hash: Hash256::zero(),
                    deposit_count: 0,
                },
                graffiti: Graffiti::default(),
                proposer_slashings: VariableList::empty(),
                attester_slashings: VariableList::empty(),
                attestations: VariableList::empty(),
                deposits: VariableList::empty(),
                voluntary_exits: VariableList::empty(),
            },
        }
    }
/// Returns an empty block to be used during genesis.
///
/// Spec v0.12.1
Returns an empty block to be used during genesis.
Returns an empty block to be used during genesis .
pub fn empty(spec: &ChainSpec) -> Self {
        BeaconBlock {
            slot: spec.genesis_slot,
            proposer_index: 0,
            parent_root: Hash256::zero(),
            state_root: Hash256::zero(),
            body: BeaconBlockBody {
                randao_reveal: Signature::empty(),
                eth1_data: Eth1Data {
                    deposit_root: Hash256::zero(),
                    block_hash: Hash256::zero(),
                    deposit_count: 0,
                },
                graffiti: Graffiti::default(),
                proposer_slashings: VariableList::empty(),
                attester_slashings: VariableList::empty(),
                attestations: VariableList::empty(),
                deposits: VariableList::empty(),
                voluntary_exits: VariableList::empty(),
            },
        }
    }
pub fn empty ( spec : & ChainSpec ) -> Self { BeaconBlock { slot : spec . genesis_slot , proposer_index : 0 , parent_root : Hash256 :: zero ( ) , state_root : Hash256 :: zero ( ) , body : BeaconBlockBody { randao_reveal : Signature :: empty ( ) , eth1_data : Eth1Data { deposit_root : Hash256 :: zero ( ) , block_hash : Hash256 :: zero ( ) , deposit_count : 0 , } , graffiti : Graffiti :: default ( ) , proposer_slashings : VariableList :: empty ( ) , attester_slashings : VariableList :: empty ( ) , attestations : VariableList :: empty ( ) , deposits : VariableList :: empty ( ) , voluntary_exits : VariableList :: empty ( ) , } , } }
Returns an empty block to be used during genesis.
Returns an empty block to be used during genesis .
spec
&ChainSpec