mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 03:11:01 +00:00
Introduce a Slot type (#7997)
* Introduce a `Slot` type Instead of having some type definition that only was used in half of the code or directly using `u64`, this adds a new unit type wrapper `Slot`. This makes it especially easy for the outside api to know what type is expected/returned. * Change epoch duratioC * rename all instances of slot number to slot * Make the constructor private Co-authored-by: André Silva <andrerfosilva@gmail.com>
This commit is contained in:
@@ -31,7 +31,7 @@ use frame_support::traits::{Currency, OnInitialize};
|
||||
use sp_runtime::{Perbill, traits::{Convert, StaticLookup, Saturating, UniqueSaturatedInto}};
|
||||
use sp_staking::offence::{ReportOffence, Offence, OffenceDetails};
|
||||
|
||||
use pallet_balances::{Config as BalancesConfig};
|
||||
use pallet_balances::Config as BalancesConfig;
|
||||
use pallet_babe::BabeEquivocationOffence;
|
||||
use pallet_grandpa::{GrandpaEquivocationOffence, GrandpaTimeSlot};
|
||||
use pallet_im_online::{Config as ImOnlineConfig, Module as ImOnline, UnresponsivenessOffence};
|
||||
@@ -331,7 +331,7 @@ benchmarks! {
|
||||
let keys = ImOnline::<T>::keys();
|
||||
|
||||
let offence = BabeEquivocationOffence {
|
||||
slot: 0,
|
||||
slot: 0u64.into(),
|
||||
session_index: 0,
|
||||
validator_set_count: keys.len() as u32,
|
||||
offender: T::convert(offenders.pop().unwrap()),
|
||||
|
||||
Reference in New Issue
Block a user