mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 20:31:13 +00:00
Remove useless WeightInfo in pallet-offences (#10114)
This commit is contained in:
@@ -43,28 +43,6 @@ type OpaqueTimeSlot = Vec<u8>;
|
||||
/// A type alias for a report identifier.
|
||||
type ReportIdOf<T> = <T as frame_system::Config>::Hash;
|
||||
|
||||
pub trait WeightInfo {
|
||||
fn report_offence_im_online(r: u32, o: u32, n: u32) -> Weight;
|
||||
fn report_offence_grandpa(r: u32, n: u32) -> Weight;
|
||||
fn report_offence_babe(r: u32, n: u32) -> Weight;
|
||||
fn on_initialize(d: u32) -> Weight;
|
||||
}
|
||||
|
||||
impl WeightInfo for () {
|
||||
fn report_offence_im_online(_r: u32, _o: u32, _n: u32) -> Weight {
|
||||
1_000_000_000
|
||||
}
|
||||
fn report_offence_grandpa(_r: u32, _n: u32) -> Weight {
|
||||
1_000_000_000
|
||||
}
|
||||
fn report_offence_babe(_r: u32, _n: u32) -> Weight {
|
||||
1_000_000_000
|
||||
}
|
||||
fn on_initialize(_d: u32) -> Weight {
|
||||
1_000_000_000
|
||||
}
|
||||
}
|
||||
|
||||
#[frame_support::pallet]
|
||||
pub mod pallet {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user