Skip to content

Commit 484370c

Browse files
authored
Merge branch 'master' into cirko33-10687-bug
2 parents 8c3aa43 + 5fd7bb5 commit 484370c

File tree

32 files changed

+94
-10
lines changed

32 files changed

+94
-10
lines changed

cumulus/client/service/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ use sc_network::{
4343
};
4444
use sc_network_sync::SyncingService;
4545
use sc_network_transactions::TransactionsHandlerController;
46-
use sc_service::{Configuration, SpawnTaskHandle, TaskManager, WarpSyncConfig};
46+
use sc_service::{
47+
Configuration, SpawnEssentialTaskHandle, SpawnTaskHandle, TaskManager, WarpSyncConfig,
48+
};
4749
use sc_telemetry::{log, TelemetryWorkerHandle};
4850
use sc_tracing::block::TracingExecuteBlock;
4951
use sc_utils::mpsc::TracingUnboundedSender;
@@ -291,6 +293,7 @@ pub struct BuildNetworkParams<
291293
pub para_id: ParaId,
292294
pub relay_chain_interface: RCInterface,
293295
pub spawn_handle: SpawnTaskHandle,
296+
pub spawn_essential_handle: SpawnEssentialTaskHandle,
294297
pub import_queue: IQ,
295298
pub sybil_resistance_level: CollatorSybilResistance,
296299
pub metrics: sc_network::NotificationMetrics,
@@ -305,6 +308,7 @@ pub async fn build_network<'a, Block, Client, RCInterface, IQ, Network>(
305308
transaction_pool,
306309
para_id,
307310
spawn_handle,
311+
spawn_essential_handle,
308312
relay_chain_interface,
309313
import_queue,
310314
sybil_resistance_level,
@@ -374,6 +378,7 @@ where
374378
client,
375379
transaction_pool,
376380
spawn_handle,
381+
spawn_essential_handle,
377382
import_queue,
378383
block_announce_validator_builder: Some(Box::new(move |_| block_announce_validator)),
379384
warp_sync_config,

cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
147147
spec_name: alloc::borrow::Cow::Borrowed("westmint"),
148148
impl_name: alloc::borrow::Cow::Borrowed("westmint"),
149149
authoring_version: 1,
150-
spec_version: 1_021_001,
150+
spec_version: 1_021_002,
151151
impl_version: 0,
152152
apis: RUNTIME_API_VERSIONS,
153153
transaction_version: 16,

cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
244244
spec_name: alloc::borrow::Cow::Borrowed("bridge-hub-westend"),
245245
impl_name: alloc::borrow::Cow::Borrowed("bridge-hub-westend"),
246246
authoring_version: 1,
247-
spec_version: 1_021_000,
247+
spec_version: 1_021_001,
248248
impl_version: 0,
249249
apis: RUNTIME_API_VERSIONS,
250250
transaction_version: 6,

cumulus/polkadot-omni-node/lib/src/common/spec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ pub(crate) trait NodeSpec: BaseNodeSpec {
394394
transaction_pool: transaction_pool.clone(),
395395
para_id,
396396
spawn_handle: task_manager.spawn_handle(),
397+
spawn_essential_handle: task_manager.spawn_essential_handle(),
397398
relay_chain_interface: relay_chain_interface.clone(),
398399
import_queue: params.import_queue,
399400
sybil_resistance_level: Self::SYBIL_RESISTANCE,

cumulus/polkadot-omni-node/lib/src/nodes/aura.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ where
242242
client: client.clone(),
243243
transaction_pool: transaction_pool.clone(),
244244
spawn_handle: task_manager.spawn_handle(),
245+
spawn_essential_handle: task_manager.spawn_essential_handle(),
245246
import_queue,
246247
net_config,
247248
block_announce_validator_builder: None,

cumulus/polkadot-omni-node/lib/src/nodes/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ pub mod aura;
1919
/// The current node version for cumulus official binaries, which takes the basic
2020
/// SemVer form `<major>.<minor>.<patch>`. It should correspond to the latest
2121
/// `polkadot` version of a stable release.
22-
pub const NODE_VERSION: &'static str = "1.21.0";
22+
pub const NODE_VERSION: &'static str = "1.21.1";

cumulus/test/service/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ where
362362
transaction_pool: transaction_pool.clone(),
363363
para_id,
364364
spawn_handle: task_manager.spawn_handle(),
365+
spawn_essential_handle: task_manager.spawn_essential_handle(),
365366
relay_chain_interface: relay_chain_interface.clone(),
366367
import_queue: params.import_queue,
367368
metrics: Net::register_notification_metrics(

polkadot/node/primitives/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub use disputes::{
6060
/// relatively rare.
6161
///
6262
/// The associated worker binaries should use the same version as the node that spawns them.
63-
pub const NODE_VERSION: &'static str = "1.21.0";
63+
pub const NODE_VERSION: &'static str = "1.21.1";
6464

6565
// For a 16-ary Merkle Prefix Trie, we can expect at most 16 32-byte hashes per node
6666
// plus some overhead:

polkadot/node/service/src/builder/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ where
462462
client: client.clone(),
463463
transaction_pool: transaction_pool.clone(),
464464
spawn_handle: task_manager.spawn_handle(),
465+
spawn_essential_handle: task_manager.spawn_essential_handle(),
465466
import_queue,
466467
block_announce_validator_builder: None,
467468
warp_sync_config: Some(WarpSyncConfig::WithProvider(warp_sync)),

prdoc/pr_10847.prdoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
title: 'net: Spawn network backend as essential task'
2+
doc:
3+
- audience: Node Dev
4+
description: |-
5+
This PR spawns the network backends as essential (libp2p / litep2p).
6+
7+
When the network future exits, it will bring down the whole process.
8+
- there's no point in running a node without the core network backend as it will not be able to communicate with peers
9+
- while at it, have changed some logs from debug to warn
10+
- the network backend can be brought down unintentionally by the `import_notif_stream`
11+
12+
13+
Discovered during:
14+
- https://github.com/paritytech/polkadot-sdk/issues/10821
15+
crates:
16+
- name: cumulus-client-service
17+
bump: patch
18+
- name: polkadot-omni-node-lib
19+
bump: patch
20+
- name: polkadot-service
21+
bump: patch
22+
- name: sc-service
23+
bump: patch

0 commit comments

Comments
 (0)