Move helpers.rs into common/delegation

This commit is contained in:
Paul Hauner 2018-09-25 12:32:51 +10:00
parent d9046e4c1b
commit dc7d2ff150
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C
5 changed files with 7 additions and 12 deletions

View File

@ -1,18 +1,9 @@
/*
* Collection of helper functions used in the state transition modules
*/
use super::utils::errors::ParameterError; use super::utils::errors::ParameterError;
use super::utils::types::Hash256; use super::utils::types::Hash256;
/* /*
pub fn get_signed_parent_hashes( * Work-in-progress function: not ready for review.
active_state: &ActiveState, */
block: &Block,
attestation: &AttestationRecord,
chain_config: &ChainConfig)
-> Vec<Hash256> {
}
*/
pub fn get_block_hash( pub fn get_block_hash(
active_state_recent_block_hashes: &Vec<Hash256>, active_state_recent_block_hashes: &Vec<Hash256>,

View File

@ -0,0 +1,3 @@
mod block_hash;
use super::utils;

View File

@ -1,7 +1,9 @@
mod delegation;
mod shuffling; mod shuffling;
pub mod maps; pub mod maps;
pub mod attestation_parent_hashes; pub mod attestation_parent_hashes;
use super::utils;
use super::utils::types::Hash256; use super::utils::types::Hash256;
pub use self::shuffling::shuffle; pub use self::shuffling::shuffle;

View File

@ -14,7 +14,6 @@ pub mod block;
pub mod crosslink_record; pub mod crosslink_record;
pub mod shard_and_committee; pub mod shard_and_committee;
pub mod validator_record; pub mod validator_record;
pub mod helpers;
use super::bls; use super::bls;
use super::db; use super::db;