From 75268b4c0a48fb250431bc7895c5d78aa4e96492 Mon Sep 17 00:00:00 2001 From: Uncle Stretch Date: Sun, 9 Nov 2025 16:09:56 +0300 Subject: [PATCH] casper runtime upgrade Signed-off-by: Uncle Stretch --- Cargo.lock | 4 ++-- runtime/casper/Cargo.toml | 2 +- runtime/casper/src/lib.rs | 9 +++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c0f8438..c2a460d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1186,7 +1186,7 @@ dependencies = [ [[package]] name = "casper-runtime" -version = "3.5.33" +version = "3.5.34" dependencies = [ "casper-runtime-constants", "frame-benchmarking", @@ -3836,7 +3836,7 @@ dependencies = [ [[package]] name = "ghost-slow-clap" -version = "0.3.47" +version = "0.3.51" dependencies = [ "frame-benchmarking", "frame-support", diff --git a/runtime/casper/Cargo.toml b/runtime/casper/Cargo.toml index 104bbe1..bf9c70b 100644 --- a/runtime/casper/Cargo.toml +++ b/runtime/casper/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "casper-runtime" -version = "3.5.33" +version = "3.5.34" 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 d5f9cb8..8d7be07 100644 --- a/runtime/casper/src/lib.rs +++ b/runtime/casper/src/lib.rs @@ -117,8 +117,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("casper"), impl_name: create_runtime_str!("casper-svengali"), authoring_version: 0, - spec_version: 3, - impl_version: 1, + spec_version: 4, + impl_version: 2, apis: RUNTIME_API_VERSIONS, transaction_version: 1, state_version: 1, @@ -1059,9 +1059,9 @@ impl ghost_claims::Config for Runtime { parameter_types! { // will be used in `Perbill::from_percent()` - pub const ApplauseThreshold: u32 = 70; + pub const ApplauseThreshold: u32 = 66; // will be used in `Perbill::from_percent()` - pub const OffenceThreshold: u32 = 40; + pub const OffenceThreshold: u32 = 5; pub const SlowClapUnsignedPriority: TransactionPriority = TransactionPriority::MAX; pub const SlowClapHistoryDepth: sp_staking::SessionIndex = StakingHistoryDepth::get() * SessionsPerEra::get(); @@ -1077,6 +1077,7 @@ impl ghost_slow_clap::Config for Runtime { type NetworkDataHandler = GhostNetworks; type BlockNumberProvider = System; type ReportUnresponsiveness = Offences; + type DisabledValidators = Session; type MaxAuthorities = MaxAuthorities; type ApplauseThreshold = ApplauseThreshold;