Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Add debug print
  • Loading branch information
sorpaas committed Aug 11, 2020
commit fc1841bd0e962904d4a17098d499364e186b1f73
8 changes: 7 additions & 1 deletion client/consensus/aura/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,13 @@ impl<C, P, CAW> AuraVerifier<C, P, CAW> where
{
const MAX_TIMESTAMP_DRIFT_SECS: u64 = 60;

if let Err(_) = self.can_author_with.can_author_with(&block_id) {
if let Err(e) = self.can_author_with.can_author_with(&block_id) {
debug!(
target: "aura",
"Skipping `check_inherents` as authoring version is not compatible: {}",
e,
);

return Ok(())
}

Expand Down
8 changes: 7 additions & 1 deletion client/consensus/babe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,13 @@ where
block_id: BlockId<Block>,
inherent_data: InherentData,
) -> Result<(), Error<Block>> {
if let Err(_) = self.can_author_with.can_author_with(&block_id) {
if let Err(e) = self.can_author_with.can_author_with(&block_id) {
debug!(
target: "babe",
"Skipping `check_inherents` as authoring version is not compatible: {}",
e,
);

return Ok(())
}

Expand Down
8 changes: 7 additions & 1 deletion client/consensus/pow/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,13 @@ impl<B, I, C, S, Algorithm, CAW> PowBlockImport<B, I, C, S, Algorithm, CAW> wher
return Ok(())
}

if let Err(_) = self.can_author_with.can_author_with(&block_id) {
if let Err(e) = self.can_author_with.can_author_with(&block_id) {
debug!(
target: "pow",
"Skipping `check_inherents` as authoring version is not compatible: {}",
e,
);

return Ok(())
}

Expand Down