Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Companion for 7155 (WeightInfo for Babe and Grandpa) #1736

Merged
4 commits merged into from
Sep 21, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ impl pallet_babe::Trait for Runtime {

type HandleEquivocation =
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;

type WeightInfo = ();
}

parameter_types! {
Expand Down Expand Up @@ -587,6 +589,8 @@ impl pallet_grandpa::Trait for Runtime {
)>>::IdentificationTuple;

type HandleEquivocation = pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;

type WeightInfo = ();
}

parameter_types! {
Expand Down
6 changes: 5 additions & 1 deletion runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ impl pallet_babe::Trait for Runtime {
)>>::IdentificationTuple;

type HandleEquivocation =
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;

type WeightInfo = ();
}

parameter_types! {
Expand Down Expand Up @@ -643,6 +645,8 @@ impl pallet_grandpa::Trait for Runtime {
type KeyOwnerProofSystem = Historical;

type HandleEquivocation = pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;

type WeightInfo = ();
}

parameter_types! {
Expand Down
4 changes: 4 additions & 0 deletions runtime/rococo-v1/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,8 @@ impl pallet_babe::Trait for Runtime {

type HandleEquivocation =
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;

type WeightInfo = ();
}

parameter_types! {
Expand Down Expand Up @@ -701,6 +703,8 @@ impl pallet_grandpa::Trait for Runtime {
)>>::IdentificationTuple;

type HandleEquivocation = pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;

type WeightInfo = ();
}

parameter_types! {
Expand Down
4 changes: 4 additions & 0 deletions runtime/test-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ impl pallet_babe::Trait for Runtime {
)>>::IdentificationTuple;

type HandleEquivocation = ();

type WeightInfo = ();
}

parameter_types! {
Expand Down Expand Up @@ -323,6 +325,8 @@ impl pallet_grandpa::Trait for Runtime {
)>>::IdentificationTuple;

type HandleEquivocation = ();

type WeightInfo = ();
}

impl<LocalCall> frame_system::offchain::CreateSignedTransaction<LocalCall> for Runtime where
Expand Down
4 changes: 4 additions & 0 deletions runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ impl pallet_babe::Trait for Runtime {

type HandleEquivocation =
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;

type WeightInfo = ();
}

parameter_types! {
Expand Down Expand Up @@ -394,6 +396,8 @@ impl pallet_grandpa::Trait for Runtime {
)>>::IdentificationTuple;

type HandleEquivocation = pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;

type WeightInfo = ();
}

parameter_types! {
Expand Down