mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 04:11:09 +00:00
babe: handle error when checking/reporting equivocations (#6915)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user