mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-14 07:58:19 +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::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>,
|
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;
|
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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user