mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +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:
Generated
+139
-139
File diff suppressed because it is too large
Load Diff
@@ -172,6 +172,8 @@ impl pallet_scheduler::Config for Runtime {
|
|||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub const EpochDuration: u64 = EPOCH_DURATION_IN_BLOCKS as u64;
|
pub const EpochDuration: u64 = EPOCH_DURATION_IN_BLOCKS as u64;
|
||||||
pub const ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
|
pub const ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
|
||||||
|
pub const ReportLongevity: u64 =
|
||||||
|
BondingDuration::get() as u64 * SessionsPerEra::get() as u64 * EpochDuration::get();
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_babe::Config for Runtime {
|
impl pallet_babe::Config for Runtime {
|
||||||
@@ -194,7 +196,7 @@ impl pallet_babe::Config for Runtime {
|
|||||||
)>>::IdentificationTuple;
|
)>>::IdentificationTuple;
|
||||||
|
|
||||||
type HandleEquivocation =
|
type HandleEquivocation =
|
||||||
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;
|
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences, ReportLongevity>;
|
||||||
|
|
||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
@@ -647,7 +649,8 @@ impl pallet_grandpa::Config for Runtime {
|
|||||||
GrandpaId,
|
GrandpaId,
|
||||||
)>>::IdentificationTuple;
|
)>>::IdentificationTuple;
|
||||||
|
|
||||||
type HandleEquivocation = pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;
|
type HandleEquivocation =
|
||||||
|
pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences, ReportLongevity>;
|
||||||
|
|
||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -186,6 +186,8 @@ impl pallet_scheduler::Config for Runtime {
|
|||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub const EpochDuration: u64 = EPOCH_DURATION_IN_BLOCKS as u64;
|
pub const EpochDuration: u64 = EPOCH_DURATION_IN_BLOCKS as u64;
|
||||||
pub const ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
|
pub const ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
|
||||||
|
pub const ReportLongevity: u64 =
|
||||||
|
BondingDuration::get() as u64 * SessionsPerEra::get() as u64 * EpochDuration::get();
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_babe::Config for Runtime {
|
impl pallet_babe::Config for Runtime {
|
||||||
@@ -208,7 +210,7 @@ impl pallet_babe::Config for Runtime {
|
|||||||
)>>::IdentificationTuple;
|
)>>::IdentificationTuple;
|
||||||
|
|
||||||
type HandleEquivocation =
|
type HandleEquivocation =
|
||||||
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;
|
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences, ReportLongevity>;
|
||||||
|
|
||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
@@ -692,7 +694,8 @@ impl pallet_grandpa::Config for Runtime {
|
|||||||
|
|
||||||
type KeyOwnerProofSystem = Historical;
|
type KeyOwnerProofSystem = Historical;
|
||||||
|
|
||||||
type HandleEquivocation = pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;
|
type HandleEquivocation =
|
||||||
|
pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences, ReportLongevity>;
|
||||||
|
|
||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -420,6 +420,7 @@ impl pallet_session::Config for Runtime {
|
|||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub const ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
|
pub const ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
|
||||||
|
pub ReportLongevity: u64 = EpochDurationInBlocks::get() as u64 * 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_babe::Config for Runtime {
|
impl pallet_babe::Config for Runtime {
|
||||||
@@ -442,7 +443,7 @@ impl pallet_babe::Config for Runtime {
|
|||||||
)>>::IdentificationTuple;
|
)>>::IdentificationTuple;
|
||||||
|
|
||||||
type HandleEquivocation =
|
type HandleEquivocation =
|
||||||
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;
|
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences, ReportLongevity>;
|
||||||
|
|
||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
@@ -477,7 +478,8 @@ impl pallet_grandpa::Config for Runtime {
|
|||||||
GrandpaId,
|
GrandpaId,
|
||||||
)>>::IdentificationTuple;
|
)>>::IdentificationTuple;
|
||||||
|
|
||||||
type HandleEquivocation = pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;
|
type HandleEquivocation =
|
||||||
|
pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences, ReportLongevity>;
|
||||||
|
|
||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -163,6 +163,8 @@ impl pallet_scheduler::Config for Runtime {
|
|||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub const EpochDuration: u64 = EPOCH_DURATION_IN_BLOCKS as u64;
|
pub const EpochDuration: u64 = EPOCH_DURATION_IN_BLOCKS as u64;
|
||||||
pub const ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
|
pub const ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
|
||||||
|
pub const ReportLongevity: u64 =
|
||||||
|
BondingDuration::get() as u64 * SessionsPerEra::get() as u64 * EpochDuration::get();
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_babe::Config for Runtime {
|
impl pallet_babe::Config for Runtime {
|
||||||
@@ -185,7 +187,7 @@ impl pallet_babe::Config for Runtime {
|
|||||||
)>>::IdentificationTuple;
|
)>>::IdentificationTuple;
|
||||||
|
|
||||||
type HandleEquivocation =
|
type HandleEquivocation =
|
||||||
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;
|
pallet_babe::EquivocationHandler<Self::KeyOwnerIdentification, Offences, ReportLongevity>;
|
||||||
|
|
||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
@@ -427,7 +429,8 @@ impl pallet_grandpa::Config for Runtime {
|
|||||||
GrandpaId,
|
GrandpaId,
|
||||||
)>>::IdentificationTuple;
|
)>>::IdentificationTuple;
|
||||||
|
|
||||||
type HandleEquivocation = pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences>;
|
type HandleEquivocation =
|
||||||
|
pallet_grandpa::EquivocationHandler<Self::KeyOwnerIdentification, Offences, ReportLongevity>;
|
||||||
|
|
||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user