pub fn beacon_state<E: EthSpec>(&self) -> Result<BeaconState<E>, String> {
        let genesis_state_bytes = self
            .genesis_state_bytes
            .as_ref()
            .ok_or("Genesis state is unknown")?;

        BeaconState::from_ssz_bytes(genesis_state_bytes)
            .map_err(|e| format!("Genesis state SSZ bytes are invalid: {:?}", e))
    }
/// Attempts to deserialize `self.beacon_state`, returning an error if it's missing or invalid.
Attempts to deserialize `self.beacon_state`, returning an error if it's missing or invalid.
Attempts to deserialize ` self . beacon_state ` returning an error if it ' s missing or invalid .
pub fn beacon_state<E: EthSpec>(&self) -> Result<BeaconState<E>, String> {
        let genesis_state_bytes = self
            .genesis_state_bytes
            .as_ref()
            .ok_or("Genesis state is unknown")?;
        BeaconState::from_ssz_bytes(genesis_state_bytes)
            .map_err(|e| format!("Genesis state SSZ bytes are invalid: {:?}", e))
    }
pub fn beacon_state < E : EthSpec > ( & self ) -> Result < BeaconState < E > , String > { let genesis_state_bytes = self . genesis_state_bytes . as_ref ( ) . ok_or ( " " ) ? ; BeaconState :: from_ssz_bytes ( genesis_state_bytes ) . map_err ( | e | format ! ( " " e ) ) }
Attempts to deserialize `self.beacon_state`, returning an error if it's missing or invalid.
Attempts to deserialize ` self . beacon_state ` returning an error if it ' s missing or invalid .
&self