diff --git a/Cargo.lock b/Cargo.lock index 65b74b6..64c2628 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1186,7 +1186,7 @@ dependencies = [ [[package]] name = "casper-runtime" -version = "3.5.20" +version = "3.5.21" dependencies = [ "casper-runtime-constants", "frame-benchmarking", diff --git a/runtime/casper/Cargo.toml b/runtime/casper/Cargo.toml index 950e1ff..6b358c0 100644 --- a/runtime/casper/Cargo.toml +++ b/runtime/casper/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "casper-runtime" -version = "3.5.20" +version = "3.5.21" build = "build.rs" description = "Runtime of the Casper Network" edition.workspace = true diff --git a/runtime/casper/src/lib.rs b/runtime/casper/src/lib.rs index 5e0f8e2..2aa996a 100644 --- a/runtime/casper/src/lib.rs +++ b/runtime/casper/src/lib.rs @@ -1035,6 +1035,7 @@ impl pallet_alliance::Config for Runtime { impl ghost_networks::Config for Runtime { type RuntimeEvent = RuntimeEvent; type NetworkId = u64; + type Currency = Balances; type RegisterOrigin = EitherOf< EnsureRootWithSuccess>, @@ -1073,14 +1074,11 @@ impl ghost_claims::Config for Runtime { } parameter_types! { - // maximum number of claps in one tx - pub MaxNumberOfClaps: u32 = 5; // will be used in `Perbill::from_percent()` pub ApplauseThreshold: u32 = 70; // will be used in `Perbill::from_percent()` pub OffenceThreshold: u32 = 40; - pub const SlowClapUnsignedPriority: TransactionPriority = - TransactionPriority::max_value(); + pub const SlowClapUnsignedPriority: TransactionPriority = TransactionPriority::MAX; } impl ghost_slow_clap::Config for Runtime { @@ -1095,15 +1093,11 @@ impl ghost_slow_clap::Config for Runtime { type ReportUnresponsiveness = Offences; type MaxAuthorities = MaxAuthorities; - type MaxNumberOfClaps = MaxNumberOfClaps; type ApplauseThreshold = ApplauseThreshold; - type MaxAuthorityInfoInSession = MaxAuthorities; type OffenceThreshold = OffenceThreshold; - type UnsignedPriority = SlowClapUnsignedPriority; - type TreasuryPalletId = TreasuryPalletId; - type WeightInfo = weights::ghost_slow_clap::WeightInfo; + type WeightInfo = Default::default(); } construct_runtime! {