Unverified Commit fe00c791 authored by Ashley's avatar Ashley Committed by GitHub
Browse files

Companion PR for `Remove the service builder` (#1448)

* Switch branch

* Update branch

* Change service code

* Change light service stuff to be functions ^_^

* Update substrate branch

* Remove accidental 'f'

* Rework LightBackend/LightClient types

* Update substrate branch

* Remove unused imports in test-service

* Add #[cfg(feature = full-node)]
parent 11fabd12
Pipeline #101463 passed with stages
in 28 minutes and 2 seconds
This diff is collapsed.
This diff is collapsed.
......@@ -21,17 +21,13 @@
mod chain_spec;
pub use chain_spec::*;
use consensus_common::{block_validation::Chain, SelectChain};
use futures::future::Future;
use grandpa::FinalityProofProvider as GrandpaFinalityProofProvider;
use log::info;
use polkadot_network::{legacy::gossip::Known, protocol as network_protocol};
use polkadot_primitives::v0::{
Block, BlockId, Hash, CollatorId, Id as ParaId,
Block, Hash, CollatorId, Id as ParaId,
};
use polkadot_runtime_common::{parachains, registrar, BlockHashCount};
use polkadot_service::{
new_full, new_full_start, FullNodeHandles, PolkadotClient, ServiceComponents,
new_full, FullNodeHandles, PolkadotClient,
};
use polkadot_test_runtime::{RestrictFunctionality, Runtime, SignedExtra, SignedPayload, VERSION};
use sc_chain_spec::ChainSpec;
......@@ -54,7 +50,6 @@ use sp_keyring::Sr25519Keyring;
use sp_runtime::{codec::Encode, generic};
use sp_state_machine::BasicExternalities;
use std::sync::Arc;
use std::time::Duration;
use substrate_test_client::{BlockchainEventsExt, RpcHandlersExt, RpcTransactionOutput, RpcTransactionError};
native_executor_instance!(
......@@ -81,15 +76,16 @@ pub fn polkadot_test_new_full(
),
ServiceError,
> {
let (task_manager, client, handles, network, rpc_handlers) = new_full!(test
config,
collating_for,
max_block_data_size,
authority_discovery_disabled,
slot_duration,
polkadot_test_runtime::RuntimeApi,
PolkadotTestExecutor,
);
let (task_manager, client, handles, network, rpc_handlers) =
new_full::<polkadot_test_runtime::RuntimeApi, PolkadotTestExecutor, _>(
config,
collating_for,
max_block_data_size,
authority_discovery_disabled,
slot_duration,
None,
true,
)?;
Ok((task_manager, client, handles, network, rpc_handlers))
}
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment