Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 5550cbb

Browse files
committed
Merge commit 0a7d04d (no conflict)
Parent branch: origin/master Forked at: 4234dee
2 parents fb41215 + 0a7d04d commit 5550cbb

File tree

34 files changed

+287
-224
lines changed

34 files changed

+287
-224
lines changed

Cargo.lock

Lines changed: 159 additions & 158 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ path = "src/main.rs"
44

55
[package]
66
name = "polkadot"
7-
version = "0.8.13"
7+
version = "0.8.14"
88
authors = ["Parity Technologies <[email protected]>"]
99
edition = "2018"
1010

availability-store/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "polkadot-availability-store"
33
description = "Persistent database for parachain data"
4-
version = "0.8.13"
4+
version = "0.8.14"
55
authors = ["Parity Technologies <[email protected]>"]
66
edition = "2018"
77

cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-cli"
3-
version = "0.8.13"
3+
version = "0.8.14"
44
authors = ["Parity Technologies <[email protected]>"]
55
description = "Polkadot Relay-chain Client Node"
66
edition = "2018"

cli/src/command.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ fn get_exec_name() -> Option<String> {
3030
}
3131

3232
impl SubstrateCli for Cli {
33-
fn impl_name() -> &'static str { "Parity Polkadot" }
33+
fn impl_name() -> String { "Parity Polkadot".into() }
3434

35-
fn impl_version() -> &'static str { env!("SUBSTRATE_CLI_IMPL_VERSION") }
35+
fn impl_version() -> String { env!("SUBSTRATE_CLI_IMPL_VERSION").into() }
3636

37-
fn description() -> &'static str { env!("CARGO_PKG_DESCRIPTION") }
37+
fn description() -> String { env!("CARGO_PKG_DESCRIPTION").into() }
3838

39-
fn author() -> &'static str { env!("CARGO_PKG_AUTHORS") }
39+
fn author() -> String { env!("CARGO_PKG_AUTHORS").into() }
4040

41-
fn support_url() -> &'static str { "https://github.com/paritytech/polkadot/issues/new" }
41+
fn support_url() -> String { "https://github.com/paritytech/polkadot/issues/new".into() }
4242

4343
fn copyright_start_year() -> i32 { 2017 }
4444

45-
fn executable_name() -> &'static str { "polkadot" }
45+
fn executable_name() -> String { "polkadot".into() }
4646

4747
fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
4848
let id = if id == "" {

collator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-collator"
3-
version = "0.8.13"
3+
version = "0.8.14"
44
authors = ["Parity Technologies <[email protected]>"]
55
description = "Collator node implementation"
66
edition = "2018"

collator/src/lib.rs

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,15 @@ fn build_collator_service<P, C, R, Extrinsic>(
373373

374374
/// Async function that will run the collator node with the given `RelayChainContext` and `ParachainContext`
375375
/// built by the given `BuildParachainContext` and arguments to the underlying polkadot node.
376-
pub async fn start_collator<P>(
376+
pub fn start_collator<P>(
377377
build_parachain_context: P,
378378
para_id: ParaId,
379379
key: Arc<CollatorPair>,
380380
config: Configuration,
381-
) -> Result<(), polkadot_service::Error>
381+
) -> Result<
382+
(Pin<Box<dyn Future<Output = ()> + Send>>, sc_service::TaskManager),
383+
polkadot_service::Error
384+
>
382385
where
383386
P: 'static + BuildParachainContext,
384387
P::ParachainContext: Send + 'static,
@@ -400,14 +403,15 @@ where
400403
None,
401404
)?;
402405
let spawn_handle = task_manager.spawn_handle();
403-
build_collator_service(
406+
let future = build_collator_service(
404407
spawn_handle,
405408
handlers,
406409
client,
407410
para_id,
408411
key,
409412
build_parachain_context
410-
)?.await;
413+
)?;
414+
Ok((future.boxed(), task_manager))
411415
} else if config.chain_spec.is_westend() {
412416
let (task_manager, client, handlers) = service::westend_new_full(
413417
config,
@@ -418,14 +422,15 @@ where
418422
None,
419423
)?;
420424
let spawn_handle = task_manager.spawn_handle();
421-
build_collator_service(
425+
let future = build_collator_service(
422426
spawn_handle,
423427
handlers,
424428
client,
425429
para_id,
426430
key,
427431
build_parachain_context
428-
)?.await;
432+
)?;
433+
Ok((future.boxed(), task_manager))
429434
} else {
430435
let (task_manager, client, handles) = service::polkadot_new_full(
431436
config,
@@ -436,17 +441,16 @@ where
436441
None,
437442
)?;
438443
let spawn_handle = task_manager.spawn_handle();
439-
build_collator_service(
444+
let future = build_collator_service(
440445
spawn_handle,
441446
handles,
442447
client,
443448
para_id,
444449
key,
445-
build_parachain_context,
446-
)?.await;
450+
build_parachain_context
451+
)?;
452+
Ok((future.boxed(), task_manager))
447453
}
448-
449-
Ok(())
450454
}
451455

452456
#[cfg(not(feature = "service-rewr"))]
@@ -506,7 +510,7 @@ mod tests {
506510
fn check_send<T: Send>(_: T) {}
507511

508512
let cli = Cli::from_iter(&["-dev"]);
509-
let task_executor = |_, _| unimplemented!();
513+
let task_executor = |_, _| {};
510514
let config = cli.create_configuration(&cli.run.base, task_executor.into()).unwrap();
511515

512516
check_send(start_collator(

erasure-coding/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-erasure-coding"
3-
version = "0.8.13"
3+
version = "0.8.14"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2018"
66

network/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-network"
3-
version = "0.8.13"
3+
version = "0.8.14"
44
authors = ["Parity Technologies <[email protected]>"]
55
description = "Polkadot-specific networking protocol"
66
edition = "2018"

network/test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-network-test"
3-
version = "0.8.13"
3+
version = "0.8.14"
44
license = "GPL-3.0"
55
authors = ["Parity Technologies <[email protected]>"]
66
edition = "2018"

0 commit comments

Comments
 (0)