mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-26 20:39:58 +00:00
runtime: set equivocation report longevity (#2404)
* runtime: set equivocation report longevity * "Update Substrate" * update substrate Co-authored-by: parity-processbot <> Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
authored and
1 parent
50d1522a49
commit
800126d4e1
5 files changed
+158
-147
No files matched your search
@@ -420,6 +420,7 @@ impl pallet_session::Config for Runtime {
|
||||
|
||||
parameter_types! {
|
||||
pub const ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
|
||||
pub ReportLongevity: u64 = EpochDurationInBlocks::get() as u64 * 10;
|
||||
}
|
||||
|
||||
impl pallet_babe::Config for Runtime {
|
||||
@@ -442,7 +443,7 @@ impl pallet_babe::Config for Runtime {
|
||||
)>>::IdentificationTuple;
|
||||
|
||||
type HandleEquivocation =
|
||||
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;
|
||||
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences, ReportLongevity>;
|
||||
|
||||
type WeightInfo = ();
|
||||
}
|
||||
@@ -477,7 +478,8 @@ impl pallet_grandpa::Config for Runtime {
|
||||
GrandpaId,
|
||||
)>>::IdentificationTuple;
|
||||
|
||||
type HandleEquivocation = pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;
|
||||
type HandleEquivocation =
|
||||
pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences, ReportLongevity>;
|
||||
|
||||
type WeightInfo = ();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user