2018-08-23 08:32:18 +00:00
|
|
|
use super::super::utils::types::Hash256;
|
2018-09-19 04:46:58 +00:00
|
|
|
use super::crystallized_state;
|
|
|
|
use super::super::db;
|
|
|
|
use super::ssz;
|
|
|
|
use super::blake2;
|
|
|
|
use super::utils;
|
2018-08-23 08:32:18 +00:00
|
|
|
|
2018-08-24 06:01:57 +00:00
|
|
|
mod attestation_parent_hashes;
|
2018-08-28 07:51:57 +00:00
|
|
|
mod shuffling;
|
2018-09-19 04:46:58 +00:00
|
|
|
mod validate_block;
|
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::shuffling::shuffle;
|
2018-08-23 08:32:18 +00:00
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
pub enum TransitionError {
|
|
|
|
IntWrapping,
|
|
|
|
OutOfBounds,
|
2018-08-24 04:33:05 +00:00
|
|
|
InvalidInput(String),
|
2018-08-23 08:32:18 +00:00
|
|
|
}
|
|
|
|
|
2018-08-24 06:01:24 +00:00
|
|
|
|
|
|
|
|