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

Commit

Permalink
babe: handle error when checking/reporting equivocations (#6915)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva authored Aug 19, 2020
1 parent bf3aefd commit 3c3461d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/consensus/babe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -994,13 +994,15 @@ where
// the header is valid but let's check if there was something else already
// proposed at the same slot by the given author. if there was, we will
// report the equivocation to the runtime.
self.check_and_report_equivocation(
if let Err(err) = self.check_and_report_equivocation(
slot_now,
slot_number,
&header,
&verified_info.author,
&origin,
)?;
) {
warn!(target: "babe", "Error checking/reporting BABE equivocation: {:?}", err);
}

// if the body is passed through, we need to use the runtime
// to check that the internally-set timestamp in the inherents
Expand Down

0 comments on commit 3c3461d

Please sign in to comment.