forked from ghostchain/ghost-node
		
	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]]
 | 
					[[package]]
 | 
				
			||||||
name = "casper-runtime"
 | 
					name = "casper-runtime"
 | 
				
			||||||
version = "3.5.20"
 | 
					version = "3.5.21"
 | 
				
			||||||
dependencies = [
 | 
					dependencies = [
 | 
				
			||||||
 "casper-runtime-constants",
 | 
					 "casper-runtime-constants",
 | 
				
			||||||
 "frame-benchmarking",
 | 
					 "frame-benchmarking",
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
[package]
 | 
					[package]
 | 
				
			||||||
name = "casper-runtime"
 | 
					name = "casper-runtime"
 | 
				
			||||||
version = "3.5.20"
 | 
					version = "3.5.21"
 | 
				
			||||||
build = "build.rs"
 | 
					build = "build.rs"
 | 
				
			||||||
description = "Runtime of the Casper Network"
 | 
					description = "Runtime of the Casper Network"
 | 
				
			||||||
edition.workspace = true
 | 
					edition.workspace = true
 | 
				
			||||||
 | 
				
			|||||||
@ -1035,6 +1035,7 @@ impl pallet_alliance::Config for Runtime {
 | 
				
			|||||||
impl ghost_networks::Config for Runtime {
 | 
					impl ghost_networks::Config for Runtime {
 | 
				
			||||||
    type RuntimeEvent = RuntimeEvent;
 | 
					    type RuntimeEvent = RuntimeEvent;
 | 
				
			||||||
    type NetworkId = u64;
 | 
					    type NetworkId = u64;
 | 
				
			||||||
 | 
					    type Currency = Balances;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    type RegisterOrigin = EitherOf<
 | 
					    type RegisterOrigin = EitherOf<
 | 
				
			||||||
        EnsureRootWithSuccess<Self::AccountId, ConstU16<65535>>, 
 | 
					        EnsureRootWithSuccess<Self::AccountId, ConstU16<65535>>, 
 | 
				
			||||||
@ -1073,14 +1074,11 @@ impl ghost_claims::Config<CultCollectiveInstance> for Runtime {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
parameter_types! {
 | 
					parameter_types! {
 | 
				
			||||||
    // maximum number of claps in one tx 
 | 
					 | 
				
			||||||
    pub MaxNumberOfClaps: u32 = 5;
 | 
					 | 
				
			||||||
    // will be used in `Perbill::from_percent()`
 | 
					    // will be used in `Perbill::from_percent()`
 | 
				
			||||||
    pub ApplauseThreshold: u32 = 70;
 | 
					    pub ApplauseThreshold: u32 = 70;
 | 
				
			||||||
    // will be used in `Perbill::from_percent()`
 | 
					    // will be used in `Perbill::from_percent()`
 | 
				
			||||||
    pub OffenceThreshold: u32 = 40;
 | 
					    pub OffenceThreshold: u32 = 40;
 | 
				
			||||||
    pub const SlowClapUnsignedPriority: TransactionPriority =
 | 
					    pub const SlowClapUnsignedPriority: TransactionPriority = TransactionPriority::MAX;
 | 
				
			||||||
        TransactionPriority::max_value();
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
impl ghost_slow_clap::Config for Runtime {
 | 
					impl ghost_slow_clap::Config for Runtime {
 | 
				
			||||||
@ -1095,15 +1093,11 @@ impl ghost_slow_clap::Config for Runtime {
 | 
				
			|||||||
    type ReportUnresponsiveness = Offences;
 | 
					    type ReportUnresponsiveness = Offences;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    type MaxAuthorities = MaxAuthorities;
 | 
					    type MaxAuthorities = MaxAuthorities;
 | 
				
			||||||
    type MaxNumberOfClaps = MaxNumberOfClaps;
 | 
					 | 
				
			||||||
    type ApplauseThreshold = ApplauseThreshold;
 | 
					    type ApplauseThreshold = ApplauseThreshold;
 | 
				
			||||||
    type MaxAuthorityInfoInSession = MaxAuthorities;
 | 
					 | 
				
			||||||
    type OffenceThreshold = OffenceThreshold;
 | 
					    type OffenceThreshold = OffenceThreshold;
 | 
				
			||||||
 | 
					 | 
				
			||||||
    type UnsignedPriority = SlowClapUnsignedPriority;
 | 
					    type UnsignedPriority = SlowClapUnsignedPriority;
 | 
				
			||||||
    type TreasuryPalletId = TreasuryPalletId;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    type WeightInfo = weights::ghost_slow_clap::WeightInfo<Runtime>;
 | 
					    type WeightInfo = Default::default();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
construct_runtime! {
 | 
					construct_runtime! {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user