mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-13 15:38:21 +00:00
Move helpers.rs into common/delegation
This commit is contained in:
parent
d9046e4c1b
commit
dc7d2ff150
@ -1,18 +1,9 @@
|
||||
/*
|
||||
* Collection of helper functions used in the state transition modules
|
||||
*/
|
||||
use super::utils::errors::ParameterError;
|
||||
use super::utils::types::Hash256;
|
||||
|
||||
/*
|
||||
pub fn get_signed_parent_hashes(
|
||||
active_state: &ActiveState,
|
||||
block: &Block,
|
||||
attestation: &AttestationRecord,
|
||||
chain_config: &ChainConfig)
|
||||
-> Vec<Hash256> {
|
||||
}
|
||||
*/
|
||||
* Work-in-progress function: not ready for review.
|
||||
*/
|
||||
|
||||
pub fn get_block_hash(
|
||||
active_state_recent_block_hashes: &Vec<Hash256>,
|
3
lighthouse/state/common/delegation/mod.rs
Normal file
3
lighthouse/state/common/delegation/mod.rs
Normal file
@ -0,0 +1,3 @@
|
||||
mod block_hash;
|
||||
|
||||
use super::utils;
|
@ -1,7 +1,9 @@
|
||||
mod delegation;
|
||||
mod shuffling;
|
||||
|
||||
pub mod maps;
|
||||
pub mod attestation_parent_hashes;
|
||||
|
||||
use super::utils;
|
||||
use super::utils::types::Hash256;
|
||||
pub use self::shuffling::shuffle;
|
||||
|
@ -14,7 +14,6 @@ pub mod block;
|
||||
pub mod crosslink_record;
|
||||
pub mod shard_and_committee;
|
||||
pub mod validator_record;
|
||||
pub mod helpers;
|
||||
|
||||
use super::bls;
|
||||
use super::db;
|
||||
|
Loading…
Reference in New Issue
Block a user