mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 08:41:02 +00:00
Benchmark Offences Pallet (#5411)
* Add initial report_ofence bench. * Remove unused imports * Style nit * Add nominators * Remove logs. * Nits. * Add nominators param. * Reorg, comment. * Remove whitespaces. * Apply review suggestion: move benchmark to own crate. * Remove import. * Remove line. * Add feature flag. * Pass can_report. * Cleaning up. * More cleaning
This commit is contained in:
@@ -679,11 +679,11 @@ pub struct UnresponsivenessOffence<Offender> {
|
||||
///
|
||||
/// It acts as a time measure for unresponsiveness reports and effectively will always point
|
||||
/// at the end of the session.
|
||||
session_index: SessionIndex,
|
||||
pub session_index: SessionIndex,
|
||||
/// The size of the validator set in current session/era.
|
||||
validator_set_count: u32,
|
||||
pub validator_set_count: u32,
|
||||
/// Authorities that were unresponsive during the current era.
|
||||
offenders: Vec<Offender>,
|
||||
pub offenders: Vec<Offender>,
|
||||
}
|
||||
|
||||
impl<Offender: Clone> Offence<Offender> for UnresponsivenessOffence<Offender> {
|
||||
|
||||
Reference in New Issue
Block a user