lighthouse-pulse/lighthouse/state/transition/mod.rs

23 lines
517 B
Rust
Raw Normal View History

use super::super::utils::types::Hash256;
2018-08-28 07:51:57 +00:00
use super::chain_config::ChainConfig;
use super::shard_and_committee::ShardAndCommittee;
use super::validator_record::ValidatorRecord;
2018-08-24 06:01:57 +00:00
mod attestation_parent_hashes;
2018-08-28 07:51:57 +00:00
mod shuffling;
mod validator_allocation;
2018-08-24 06:01:57 +00:00
pub use self::attestation_parent_hashes::attestation_parent_hashes;
2018-08-28 07:51:57 +00:00
pub use self::validator_allocation::get_new_shuffling;
pub use self::shuffling::shuffle;
#[derive(Debug)]
pub enum TransitionError {
IntWrapping,
OutOfBounds,
InvalidInput(String),
}