Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor chain information building process #2845

Merged
merged 13 commits into from
Oct 10, 2022
12 changes: 4 additions & 8 deletions src/chain/chain_information.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ use crate::header;
use alloc::vec::Vec;
use core::num::NonZeroU64;

pub mod aura_config;
pub mod babe_fetch_epoch;
pub mod babe_genesis_config;
pub mod grandpa_genesis_config;
pub mod build;

/// Information about the latest finalized block and state found in its ancestors.
///
Expand Down Expand Up @@ -190,8 +187,8 @@ pub enum ChainInformationConsensus {
/// Babe epoch information about the epoch the finalized block belongs to.
///
/// If the finalized block belongs to epoch #0, which starts at block #1, then this must
/// contain the information about the epoch #0, which can be found by calling
/// [`babe_genesis_config::BabeGenesisConfiguration::from_virtual_machine_prototype`].
/// contain the information about the epoch #0, which can be found by calling the
/// `BabeApi_configuration` runtime function.
///
/// Must be `None` if and only if the finalized block is block #0.
///
Expand All @@ -210,8 +207,7 @@ pub enum ChainInformationConsensus {
/// this field must contain the epoch that follows.
///
/// If the finalized block is block #0, then this must contain the information about the
/// epoch #0, which can be found by calling
/// [`babe_genesis_config::BabeGenesisConfiguration::from_virtual_machine_prototype`].
/// epoch #0, which can be found by calling the `BabeApi_configuration` runtime function.
finalized_next_epoch_transition: BabeEpochInformation,
},
}
Expand Down
178 changes: 0 additions & 178 deletions src/chain/chain_information/aura_config.rs

This file was deleted.

Loading