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

Commit

Permalink
Use different informant prefix for parachain and relaychain
Browse files Browse the repository at this point in the history
Fixes #19
  • Loading branch information
cecton committed Jun 9, 2020
1 parent 288885b commit 6090a5e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion test/parachain/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ pub fn run() -> Result<()> {
None,
authority_discovery_enabled,
6000,
grandpa_pause
grandpa_pause,
None,
).map(|(s, _, _)| s)
},
polkadot_service::PolkadotExecutor::native_version().runtime_version
Expand Down
2 changes: 2 additions & 0 deletions test/parachain/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ pub fn run_collator(
let block_announce_validator = DelayedBlockAnnounceValidator::new();
let block_announce_validator_copy = block_announce_validator.clone();
let service = builder
.with_informant_prefix("[ParaChain]".to_string())?
.with_finality_proof_provider(|client, backend| {
// GenesisAuthoritySetProvider is implemented for StorageAndProofProvider
let provider = client as Arc<dyn StorageAndProofProvider<_, _>>;
Expand Down Expand Up @@ -130,6 +131,7 @@ pub fn run_collator(
crate::PARA_ID,
key,
polkadot_config,
Some("[RelayChain]".to_string()),
).map(|_| ());
service.spawn_essential_task("polkadot", polkadot_future);

Expand Down

0 comments on commit 6090a5e

Please sign in to comment.