runtime update, with history depth for the slow clap
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
parent
417de5a7b2
commit
99c43a0c24
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -1186,7 +1186,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "casper-runtime"
|
name = "casper-runtime"
|
||||||
version = "3.5.22"
|
version = "3.5.23"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"casper-runtime-constants",
|
"casper-runtime-constants",
|
||||||
"frame-benchmarking",
|
"frame-benchmarking",
|
||||||
@ -3834,7 +3834,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ghost-slow-clap"
|
name = "ghost-slow-clap"
|
||||||
version = "0.3.24"
|
version = "0.3.25"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"frame-benchmarking",
|
"frame-benchmarking",
|
||||||
"frame-support",
|
"frame-support",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "casper-runtime"
|
name = "casper-runtime"
|
||||||
version = "3.5.22"
|
version = "3.5.23"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
description = "Runtime of the Casper Network"
|
description = "Runtime of the Casper Network"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
|
@ -492,6 +492,8 @@ parameter_types! {
|
|||||||
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
|
pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17);
|
||||||
pub const MaxNominations: u32 =
|
pub const MaxNominations: u32 =
|
||||||
<NposCompactSolution16 as frame_election_provider_support::NposSolution>::LIMIT as u32;
|
<NposCompactSolution16 as frame_election_provider_support::NposSolution>::LIMIT as u32;
|
||||||
|
pub const StakingHistoryDepth: u32 = 84;
|
||||||
|
pub const MaxUnlockingChunks: u32 = 32;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_staking::Config for Runtime {
|
impl pallet_staking::Config for Runtime {
|
||||||
@ -520,8 +522,8 @@ impl pallet_staking::Config for Runtime {
|
|||||||
type VoterList = VoterList;
|
type VoterList = VoterList;
|
||||||
type TargetList = UseValidatorsMap<Self>;
|
type TargetList = UseValidatorsMap<Self>;
|
||||||
type NominationsQuota = pallet_staking::FixedNominationsQuota<{ MaxNominations::get() }>;
|
type NominationsQuota = pallet_staking::FixedNominationsQuota<{ MaxNominations::get() }>;
|
||||||
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
|
type MaxUnlockingChunks = MaxUnlockingChunks;
|
||||||
type HistoryDepth = frame_support::traits::ConstU32<84>;
|
type HistoryDepth = StakingHistoryDepth;
|
||||||
type MaxControllersInDeprecationBatch = ConstU32<5314>;
|
type MaxControllersInDeprecationBatch = ConstU32<5314>;
|
||||||
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
|
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
|
||||||
type EventListeners = NominationPools;
|
type EventListeners = NominationPools;
|
||||||
@ -1075,10 +1077,12 @@ impl ghost_claims::Config<CultCollectiveInstance> for Runtime {
|
|||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
// will be used in `Perbill::from_percent()`
|
// will be used in `Perbill::from_percent()`
|
||||||
pub ApplauseThreshold: u32 = 70;
|
pub const ApplauseThreshold: u32 = 70;
|
||||||
// will be used in `Perbill::from_percent()`
|
// will be used in `Perbill::from_percent()`
|
||||||
pub OffenceThreshold: u32 = 40;
|
pub const OffenceThreshold: u32 = 40;
|
||||||
pub const SlowClapUnsignedPriority: TransactionPriority = TransactionPriority::MAX;
|
pub const SlowClapUnsignedPriority: TransactionPriority = TransactionPriority::MAX;
|
||||||
|
pub const SlowClapHistoryDepth: sp_staking::SessionIndex =
|
||||||
|
StakingHistoryDepth::get() * SessionsPerEra::get();
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ghost_slow_clap::Config for Runtime {
|
impl ghost_slow_clap::Config for Runtime {
|
||||||
@ -1096,6 +1100,7 @@ impl ghost_slow_clap::Config for Runtime {
|
|||||||
type ApplauseThreshold = ApplauseThreshold;
|
type ApplauseThreshold = ApplauseThreshold;
|
||||||
type OffenceThreshold = OffenceThreshold;
|
type OffenceThreshold = OffenceThreshold;
|
||||||
type UnsignedPriority = SlowClapUnsignedPriority;
|
type UnsignedPriority = SlowClapUnsignedPriority;
|
||||||
|
type HistoryDepth = SlowClapHistoryDepth;
|
||||||
|
|
||||||
type WeightInfo = weights::ghost_slow_clap::WeightInfo<Runtime>;
|
type WeightInfo = weights::ghost_slow_clap::WeightInfo<Runtime>;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user