mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-23 08:31:16 +00:00
BEEFY: introduce offence report system (#13564)
* Trivial adjustments to beefy and grandpa pallets * Introduce offence report system to beefy pallet * Minor adjustments * Fix beefy-mmr mock * Apply suggestions from code review Co-authored-by: Anton <anton.kalyaev@gmail.com> --------- Co-authored-by: Anton <anton.kalyaev@gmail.com>
This commit is contained in:
@@ -296,12 +296,12 @@ fn schedule_resume_only_when_paused() {
|
||||
#[test]
|
||||
fn time_slot_have_sane_ord() {
|
||||
// Ensure that `Ord` implementation is sane.
|
||||
const FIXTURE: &[GrandpaTimeSlot] = &[
|
||||
GrandpaTimeSlot { set_id: 0, round: 0 },
|
||||
GrandpaTimeSlot { set_id: 0, round: 1 },
|
||||
GrandpaTimeSlot { set_id: 1, round: 0 },
|
||||
GrandpaTimeSlot { set_id: 1, round: 1 },
|
||||
GrandpaTimeSlot { set_id: 1, round: 2 },
|
||||
const FIXTURE: &[TimeSlot] = &[
|
||||
TimeSlot { set_id: 0, round: 0 },
|
||||
TimeSlot { set_id: 0, round: 1 },
|
||||
TimeSlot { set_id: 1, round: 0 },
|
||||
TimeSlot { set_id: 1, round: 1 },
|
||||
TimeSlot { set_id: 1, round: 2 },
|
||||
];
|
||||
assert!(FIXTURE.windows(2).all(|f| f[0] < f[1]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user