From 7e05dfc95177bceefb9e875d0b56937f44de6989 Mon Sep 17 00:00:00 2001 From: Agusrodri Date: Mon, 5 Feb 2024 05:24:16 -0800 Subject: [PATCH] pr comments --- client/consensus/src/collators/basic.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/consensus/src/collators/basic.rs b/client/consensus/src/collators/basic.rs index 6fbe8688e..12496deb8 100644 --- a/client/consensus/src/collators/basic.rs +++ b/client/consensus/src/collators/basic.rs @@ -69,7 +69,7 @@ pub struct Params { pub collation_request_receiver: Option>, } -/// Run bare Aura consensus as a relay-chain-driven collator. +/// Run tanssi Aura consensus as a relay-chain-driven collator. pub fn run( params: Params, ) -> impl Future + Send + 'static @@ -158,6 +158,7 @@ where let parent_hash = parent_header.hash(); + // Check whether we can build upon this block if !collator .collator_service() .check_block_status(parent_hash, &parent_header) @@ -175,6 +176,7 @@ where Ok(Some(h)) => h, }; + // Retrieve authorities that are able to produce the block let authorities = match params .get_authorities_from_orchestrator .retrieve_authorities_from_orchestrator(