Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request paritytech#98 from subspace/remove-offences-Weight…
Browse files Browse the repository at this point in the history
…Info

Remove WeightInfo in pallet-offences-subspace
  • Loading branch information
liuchengxu authored Oct 29, 2021
2 parents fc2a9c3 + 0133b77 commit f79b63d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions crates/pallet-offences-subspace/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ mod mock;
mod tests;

use codec::{Decode, Encode};
use frame_support::weights::Weight;
use sp_consensus_subspace::{
offence::{Kind, Offence, OffenceDetails, OffenceError, OnOffenceHandler, ReportOffence},
FarmerPublicKey,
Expand All @@ -41,16 +40,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 on_initialize(d: u32) -> Weight;
}

impl WeightInfo for () {
fn on_initialize(_d: u32) -> Weight {
1_000_000_000
}
}

#[frame_support::pallet]
pub mod pallet {
use super::*;
Expand Down

0 comments on commit f79b63d

Please sign in to comment.