lighthouse/beacon_chain/chain/src/block_processing.rs

30 lines
584 B
Rust
Raw Normal View History

use super::BeaconChain;
2018-12-09 22:54:25 +00:00
use db::ClientDB;
use types::Hash256;
pub enum BlockProcessingOutcome {
BlockAlreadyKnown,
NewCanonicalBlock,
NewReorgBlock,
NewForkBlock,
}
2018-12-09 22:54:25 +00:00
pub enum Error {
NotImplemented,
}
impl<T> BeaconChain<T>
where
T: ClientDB + Sized,
{
pub fn process_block(
&mut self,
_ssz: &[u8],
_present_slot: u64,
2018-12-09 22:54:25 +00:00
) -> Result<(BlockProcessingOutcome, Hash256), Error> {
// TODO: block processing has been removed.
// https://github.com/sigp/lighthouse/issues/98
Err(Error::NotImplemented)
}
}