Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion collator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ fn run_collator_node<S, E, P, Extrinsic>(
}
}.boxed();

service.spawn_essential_task(work);
service.spawn_essential_task("collation", work);

polkadot_cli::run_until_exit(runtime, service, exit)
}
Expand Down
7 changes: 4 additions & 3 deletions service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ pub fn new_full<Runtime, Dispatch, Extrinsic>(config: Configuration)
max_block_data_size,
}.build();

service.spawn_essential_task(Box::pin(validation_service));
service.spawn_essential_task("validation-service", Box::pin(validation_service));

let proposer = consensus::ProposerFactory::new(
client.clone(),
Expand Down Expand Up @@ -451,7 +451,7 @@ pub fn new_full<Runtime, Dispatch, Extrinsic>(config: Configuration)
};

let babe = babe::start_babe(babe_config)?;
service.spawn_essential_task(babe);
service.spawn_essential_task("babe", babe);

if authority_discovery_enabled {
let network = service.network();
Expand All @@ -467,7 +467,7 @@ pub fn new_full<Runtime, Dispatch, Extrinsic>(config: Configuration)
service.keystore(),
dht_event_stream,
);
service.spawn_task(authority_discovery);
service.spawn_task("authority-discovery", authority_discovery);
}
}

Expand Down Expand Up @@ -509,6 +509,7 @@ pub fn new_full<Runtime, Dispatch, Extrinsic>(config: Configuration)
};

service.spawn_essential_task(
"grandpa-voter",
grandpa::run_grandpa_voter(grandpa_config)?.compat().map(drop)
);
} else {
Expand Down