Skip to content

Commit

Permalink
Remove unused longest chain rule from parachain node (paritytech#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshOrndorff authored Dec 3, 2020
1 parent 1b38d60 commit 1d9ed3f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions node/parachain/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ use sc_service::{Configuration, PartialComponents, Role, TFullBackend, TFullClie
use sp_runtime::traits::BlakeTwo256;
use sp_trie::PrefixedMemoryDB;
use std::sync::Arc;
use sc_consensus::LongestChain;
use sc_client_db::Backend;
use frontier_consensus::FrontierBlockImport;
use moonbeam_runtime::{RuntimeApi, opaque::Block};
Expand All @@ -51,10 +50,7 @@ pub fn new_partial(
PartialComponents<
FullClient,
FullBackend,
LongestChain<
Backend<Block>,
Block
>,
(),
sp_consensus::import_queue::BasicQueue<
Block,
PrefixedMemoryDB<BlakeTwo256>,
Expand All @@ -79,7 +75,6 @@ pub fn new_partial(
Executor,
>(&config)?;
let client = Arc::new(client);
let select_chain = sc_consensus::LongestChain::new(backend.clone());

let registry = config.prometheus_registry();

Expand Down Expand Up @@ -113,7 +108,7 @@ pub fn new_partial(
task_manager,
transaction_pool,
inherent_data_providers,
select_chain: select_chain,
select_chain: (),
other: frontier_block_import,
};

Expand Down

0 comments on commit 1d9ed3f

Please sign in to comment.