babe: handle error when checking/reporting equivocations (#6915)

This commit is contained in:
André Silva
2020-08-19 17:11:14 +01:00
committed by GitHub
parent 7bf838f225
commit 8b5ced7fa7
+4 -2
View File
@@ -994,13 +994,15 @@ where
// the header is valid but let's check if there was something else already // 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 // proposed at the same slot by the given author. if there was, we will
// report the equivocation to the runtime. // report the equivocation to the runtime.
self.check_and_report_equivocation( if let Err(err) = self.check_and_report_equivocation(
slot_now, slot_now,
slot_number, slot_number,
&header, &header,
&verified_info.author, &verified_info.author,
&origin, &origin,
)?; ) {
warn!(target: "babe", "Error checking/reporting BABE equivocation: {:?}", err);
}
// if the body is passed through, we need to use the runtime // if the body is passed through, we need to use the runtime
// to check that the internally-set timestamp in the inherents // to check that the internally-set timestamp in the inherents