changes to runtime based on the new version of ghost-slow claps
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
parent
66fa8409fa
commit
1196cc9faa
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1186,7 +1186,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "casper-runtime"
|
||||
version = "3.5.20"
|
||||
version = "3.5.21"
|
||||
dependencies = [
|
||||
"casper-runtime-constants",
|
||||
"frame-benchmarking",
|
||||
|
@ -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
|
||||
|
@ -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<Self::AccountId, ConstU16<65535>>,
|
||||
@ -1073,14 +1074,11 @@ impl ghost_claims::Config<CultCollectiveInstance> 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<Runtime>;
|
||||
type WeightInfo = Default::default();
|
||||
}
|
||||
|
||||
construct_runtime! {
|
||||
|
Loading…
Reference in New Issue
Block a user