From c4f9f927f3dea540503735256af5834efc1170e5 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Thu, 23 Aug 2018 18:31:58 +1000 Subject: [PATCH] Rename "state" to "chain_state" --- lighthouse/state/{config.rs => chain_config.rs} | 4 ++-- lighthouse/state/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename lighthouse/state/{config.rs => chain_config.rs} (73%) diff --git a/lighthouse/state/config.rs b/lighthouse/state/chain_config.rs similarity index 73% rename from lighthouse/state/config.rs rename to lighthouse/state/chain_config.rs index 63aa7de02..c5b244f20 100644 --- a/lighthouse/state/config.rs +++ b/lighthouse/state/chain_config.rs @@ -1,8 +1,8 @@ -pub struct Config { +pub struct ChainConfig { pub cycle_length: u8, } -impl Config { +impl ChainConfig { pub fn standard() -> Self { Self { cycle_length: 8, diff --git a/lighthouse/state/mod.rs b/lighthouse/state/mod.rs index 45e845fef..5d5c2d7da 100644 --- a/lighthouse/state/mod.rs +++ b/lighthouse/state/mod.rs @@ -9,7 +9,7 @@ use super::utils; pub mod active_state; pub mod attestation_record; pub mod crystallized_state; -pub mod config; +pub mod chain_config; pub mod block; pub mod crosslink_record; pub mod shard_and_committee;