Remove collating_for argument from service (#1802)

The collator is now enabled in a different way and we don't require this
argument anymore.
This commit is contained in:
Bastian Köcher
2020-10-09 16:55:26 +02:00
committed by GitHub
parent e62b300f47
commit d985b9aa02
3 changed files with 4 additions and 17 deletions
+2 -6
View File
@@ -23,9 +23,7 @@ mod chain_spec;
pub use chain_spec::*;
use futures::future::Future;
use polkadot_overseer::OverseerHandler;
use polkadot_primitives::v0::{
Block, CollatorId, Id as ParaId,
};
use polkadot_primitives::v1::Block;
use polkadot_runtime_common::BlockHashCount;
use polkadot_service::{
new_full, NewFull, FullClient, AbstractClient, ClientHandle, ExecuteWithClient,
@@ -63,7 +61,6 @@ native_executor_instance!(
/// Create a new Polkadot test service for a full node.
pub fn polkadot_test_new_full(
config: Configuration,
collating_for: Option<(CollatorId, ParaId)>,
authority_discovery_enabled: bool,
) -> Result<
NewFull<Arc<FullClient<polkadot_test_runtime::RuntimeApi, PolkadotTestExecutor>>>,
@@ -71,7 +68,6 @@ pub fn polkadot_test_new_full(
> {
new_full::<polkadot_test_runtime::RuntimeApi, PolkadotTestExecutor>(
config,
collating_for,
authority_discovery_enabled,
None,
).map_err(Into::into)
@@ -198,7 +194,7 @@ pub fn run_test_node(
let multiaddr = config.network.listen_addresses[0].clone();
let authority_discovery_enabled = false;
let NewFull {task_manager, client, network, rpc_handlers, node_handles, ..} =
polkadot_test_new_full(config, None, authority_discovery_enabled)
polkadot_test_new_full(config, authority_discovery_enabled)
.expect("could not create Polkadot test service");
let peer_id = network.local_peer_id().clone();