Skip to content

Commit

Permalink
FMT
Browse files Browse the repository at this point in the history
  • Loading branch information
girazoki committed Sep 5, 2023
1 parent 96d7319 commit 5b0e158
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
5 changes: 4 additions & 1 deletion template/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ fn testnet_genesis(
.map(|k| (k, 1 << 60))
.collect(),
},
parachain_info: moonkit_template_runtime::ParachainInfoConfig { parachain_id: id, ..Default::default() },
parachain_info: moonkit_template_runtime::ParachainInfoConfig {
parachain_id: id,
..Default::default()
},
author_filter: moonkit_template_runtime::AuthorFilterConfig {
eligible_count: moonkit_template_runtime::EligibilityValue::default(),
..Default::default()
Expand Down
8 changes: 2 additions & 6 deletions template/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ impl SubstrateCli for Cli {
fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
load_spec(id)
}

}

impl SubstrateCli for RelayChainCli {
Expand Down Expand Up @@ -179,10 +178,7 @@ pub fn run() -> Result<()> {
Some(Subcommand::ExportGenesisState(cmd)) => {
let runner = cli.create_runner(cmd)?;
runner.sync_run(|config| {
let partials = new_partial::<
RuntimeApi,
TemplateRuntimeExecutor,
>(&config, false)?;
let partials = new_partial::<RuntimeApi, TemplateRuntimeExecutor>(&config, false)?;

cmd.run(&*config.chain_spec, &*partials.client)
})
Expand Down Expand Up @@ -268,7 +264,7 @@ pub fn run() -> Result<()> {
AccountIdConversion::<polkadot_primitives::AccountId>::into_account_truncating(
&id,
);

let tokio_handle = config.tokio_handle.clone();
let polkadot_config =
SubstrateCli::create_configuration(&polkadot_cli, &polkadot_cli, tokio_handle)
Expand Down
5 changes: 3 additions & 2 deletions template/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ use cumulus_relay_chain_minimal_node::build_minimal_relay_chain_node;
use polkadot_service::CollatorPair;

// Substrate Imports
use futures::FutureExt;
use sc_client_api::Backend;
use sc_consensus::ImportQueue;
use sc_consensus_manual_seal::{run_instant_seal, InstantSealParams};
use sc_executor::{
Expand All @@ -41,8 +43,7 @@ use sp_api::ConstructRuntimeApi;
use sp_keystore::KeystorePtr;
use sp_runtime::traits::BlakeTwo256;
use substrate_prometheus_endpoint::Registry;
use sc_client_api::Backend;
use futures::FutureExt;/// Native executor instance.
/// Native executor instance.
pub struct TemplateRuntimeExecutor;

impl sc_executor::NativeExecutionDispatch for TemplateRuntimeExecutor {
Expand Down

0 comments on commit 5b0e158

Please sign in to comment.