Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
74c6876
Initial commit
cecton Feb 14, 2020
3d0a82f
Use cecton-start-collator for polkadot
cecton Feb 14, 2020
1a07ba1
WIP
cecton Feb 14, 2020
1f2fce7
WIP
cecton Feb 14, 2020
cca92fd
WIP
cecton Feb 14, 2020
680578b
WIP
cecton Feb 14, 2020
4c6b5c9
WIP
cecton Feb 17, 2020
919a6f8
WIP
cecton Feb 17, 2020
a0feb45
WIP
cecton Feb 17, 2020
4b63f7c
WIP
cecton Feb 17, 2020
1a495a0
WIP
cecton Feb 17, 2020
373e3f1
Update substrate branch to cecton-start-collator
cecton Feb 17, 2020
930aa6d
Update Cargo.lock
cecton Feb 17, 2020
3952bd5
Update Cargo.lock
cecton Feb 17, 2020
1f5191f
Update Cargo.lock
cecton Feb 17, 2020
cd08979
Update Cargo.lock
cecton Feb 17, 2020
5134aa5
Update Cargo.lock
cecton Feb 17, 2020
f9d7ecd
Update Cargo.lock
cecton Feb 18, 2020
8a1493a
WIP
cecton Feb 18, 2020
9ed020d
Update Cargo.lock
cecton Feb 18, 2020
d685eed
Update Cargo.lock
cecton Feb 18, 2020
4f6dbb0
Update Cargo.lock
cecton Feb 18, 2020
fc68c2d
Update Cargo.lock
cecton Feb 18, 2020
d0b81d0
WIP
cecton Feb 18, 2020
65c80e1
WIP
cecton Feb 18, 2020
84d29e6
Update Cargo.lock
cecton Feb 18, 2020
c8cd73c
WIP
cecton Feb 18, 2020
5a4f0ba
Update Cargo.lock
cecton Feb 20, 2020
4b97e73
Removed closure
cecton Feb 20, 2020
e26658b
Apply suggestions from code review
cecton Feb 27, 2020
c626b44
Revert "Use cecton-start-collator for polkadot"
cecton Feb 27, 2020
5832f71
Revert "Update substrate branch to cecton-start-collator"
cecton Feb 27, 2020
509ad26
Update cargo.lock branch cumulus
cecton Feb 27, 2020
94025e3
Update from parent 'origin/master' (no conflict)
cecton Feb 27, 2020
e457b3e
Fix conflict
cecton Feb 27, 2020
8b2db31
Upgrade Cargo.lock polkadot only
cecton Feb 27, 2020
cbc14e3
Apply suggestions from code review
cecton Feb 27, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP
Forked at: ea65c31
Parent branch: origin/master
  • Loading branch information
cecton committed Feb 17, 2020
commit 4b63f7c0e33850ebf62f5bbd0f42d23b80cf98eb
9 changes: 5 additions & 4 deletions test/parachain/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ macro_rules! new_full_start {
///
/// This function blocks until done.
pub fn run_collator<E: sc_service::ChainSpecExtension>(
mut parachain_config: Configuration<GenesisConfig, E>,
parachain_config: Configuration<GenesisConfig, E>,
key: Arc<CollatorPair>,
polkadot_config: polkadot_collator::Configuration,
mut polkadot_config: polkadot_collator::Configuration,
) -> sc_cli::error::Result<()> {
sc_cli::run_service_until_exit(parachain_config, |parachain_config| {
sc_cli::run_service_until_exit(parachain_config, move |parachain_config| {
let task_executor = parachain_config.task_executor.clone().unwrap();
polkadot_config.task_executor = parachain_config.task_executor.clone();

let (builder, inherent_data_providers) = new_full_start!(parachain_config);
Expand Down Expand Up @@ -120,9 +121,9 @@ pub fn run_collator<E: sc_service::ChainSpecExtension>(
};

let polkadot_future = polkadot_collator::build_collator(polkadot_config, crate::PARA_ID, key, Box::new(builder));
//let polkadot_future = async { () };
//service.spawn_essential_task("polkadot", polkadot_future);

let task_executor = parachain_config.task_executor.as_ref().unwrap();
task_executor(Box::pin(polkadot_future));

Ok(service)
Expand Down