Skip to content

Commit

Permalink
move inherents to empty block production dir
Browse files Browse the repository at this point in the history
  • Loading branch information
liamaharon committed May 10, 2024
1 parent 16c5b39 commit 9632a14
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 10 deletions.
17 changes: 9 additions & 8 deletions core/src/commands/fast_forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ use sp_runtime::{
use sp_state_machine::TestExternalities;

use crate::{
common::state::{
build_executor, state_machine_call, state_machine_call_with_proof, RuntimeChecks, State,
common::{
empty_block_creation::inherents::{
pre_apply::pre_apply_inherents,
providers::{InherentProvider, ProviderVariant},
},
state::{
build_executor, state_machine_call, state_machine_call_with_proof, RuntimeChecks, State,
},
},
full_extensions,
inherents::{
pre_apply::pre_apply_inherents,
providers::{InherentProvider, ProviderVariant},
},
BlockT, SharedParams,
full_extensions, BlockT, SharedParams,
};

/// Configuration for [`run`].
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use sp_std::prelude::*;
use strum::IntoEnumIterator;
use strum_macros::{Display, EnumIter};

use crate::inherents::custom_idps;
use crate::common::empty_block_creation::inherents::custom_idps;

/// Trait for providing the inherent data and digest items for block construction.
pub trait InherentProvider<B: BlockT> {
Expand Down
1 change: 1 addition & 0 deletions core/src/common/empty_block_creation/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod inherents;
1 change: 1 addition & 0 deletions core/src/common/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod empty_block_creation;
pub mod misc_logging;
pub mod parse;
pub mod shared_parameters;
Expand Down
1 change: 0 additions & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ use sp_weights::Weight;

pub mod commands;
pub mod common;
mod inherents;

pub(crate) const LOG_TARGET: &str = "try-runtime::cli";

Expand Down

0 comments on commit 9632a14

Please sign in to comment.