Add cumulus-service (#187)

* Add cumulus-service

Crate that abstracts the service of a parachain.

* Make finalization infallible
This commit is contained in:
Bastian Köcher
2020-08-08 08:07:33 +02:00
committed by GitHub
parent 1fcd05503a
commit 9603b2fe5f
11 changed files with 422 additions and 145 deletions
-11
View File
@@ -30,7 +30,6 @@ use cumulus_primitives::{
use cumulus_runtime::ParachainBlockData;
use sc_client_api::{BlockBackend, Finalizer, StateBackend, UsageProvider};
use sc_service::Configuration;
use sp_api::ApiExt;
use sp_blockchain::HeaderBackend;
use sp_consensus::{
@@ -547,16 +546,6 @@ where
}
}
/// Prepare the collator's node condifugration
///
/// This function will disable the default announcement of Substrate for the parachain in favor
/// of the one of Cumulus.
pub fn prepare_collator_config(mut parachain_config: Configuration) -> Configuration {
parachain_config.announce_block = false;
parachain_config
}
#[cfg(test)]
mod tests {
use super::*;