mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
* Remove OffencesWeightSoftLimit * update Substrate Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
002f49fb03
commit
9bbc0b4460
Generated
+149
-149
File diff suppressed because it is too large
Load Diff
@@ -643,15 +643,10 @@ impl pallet_tips::Config for Runtime {
|
|||||||
type WeightInfo = weights::pallet_tips::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_tips::WeightInfo<Runtime>;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
|
||||||
pub OffencesWeightSoftLimit: Weight = Perbill::from_percent(60) * BlockWeights::get().max_block;
|
|
||||||
}
|
|
||||||
|
|
||||||
impl pallet_offences::Config for Runtime {
|
impl pallet_offences::Config for Runtime {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
|
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
|
||||||
type OnOffenceHandler = Staking;
|
type OnOffenceHandler = Staking;
|
||||||
type WeightSoftLimit = OffencesWeightSoftLimit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_authority_discovery::Config for Runtime {}
|
impl pallet_authority_discovery::Config for Runtime {}
|
||||||
|
|||||||
@@ -664,15 +664,10 @@ impl pallet_tips::Config for Runtime {
|
|||||||
type WeightInfo = weights::pallet_tips::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_tips::WeightInfo<Runtime>;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
|
||||||
pub OffencesWeightSoftLimit: Weight = Perbill::from_percent(60) * BlockWeights::get().max_block;
|
|
||||||
}
|
|
||||||
|
|
||||||
impl pallet_offences::Config for Runtime {
|
impl pallet_offences::Config for Runtime {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
|
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
|
||||||
type OnOffenceHandler = Staking;
|
type OnOffenceHandler = Staking;
|
||||||
type WeightSoftLimit = OffencesWeightSoftLimit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_authority_discovery::Config for Runtime {}
|
impl pallet_authority_discovery::Config for Runtime {}
|
||||||
|
|||||||
@@ -401,15 +401,10 @@ parameter_types! {
|
|||||||
pub const MaxRetries: u32 = 3;
|
pub const MaxRetries: u32 = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
|
||||||
pub OffencesWeightSoftLimit: Weight = Perbill::from_percent(60) * BlockWeights::get().max_block;
|
|
||||||
}
|
|
||||||
|
|
||||||
impl pallet_offences::Config for Runtime {
|
impl pallet_offences::Config for Runtime {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
|
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
|
||||||
type OnOffenceHandler = ();
|
type OnOffenceHandler = ();
|
||||||
type WeightSoftLimit = OffencesWeightSoftLimit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_authority_discovery::Config for Runtime {}
|
impl pallet_authority_discovery::Config for Runtime {}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ use pallet_grandpa::{AuthorityId as GrandpaId, fg_primitives};
|
|||||||
use sp_version::NativeVersion;
|
use sp_version::NativeVersion;
|
||||||
use sp_core::OpaqueMetadata;
|
use sp_core::OpaqueMetadata;
|
||||||
use sp_staking::SessionIndex;
|
use sp_staking::SessionIndex;
|
||||||
use frame_support::{parameter_types, construct_runtime, traits::{KeyOwnerProofSystem, Randomness}, weights::Weight};
|
use frame_support::{parameter_types, construct_runtime, traits::{KeyOwnerProofSystem, Randomness}};
|
||||||
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
|
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
|
||||||
use pallet_transaction_payment::{FeeDetails, RuntimeDispatchInfo};
|
use pallet_transaction_payment::{FeeDetails, RuntimeDispatchInfo};
|
||||||
use pallet_session::historical as session_historical;
|
use pallet_session::historical as session_historical;
|
||||||
@@ -402,15 +402,10 @@ impl frame_system::offchain::SigningTypes for Runtime {
|
|||||||
type Signature = Signature;
|
type Signature = Signature;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
|
||||||
pub storage OffencesWeightSoftLimit: Weight = Perbill::from_percent(60) * BlockWeights::get().max_block;
|
|
||||||
}
|
|
||||||
|
|
||||||
impl pallet_offences::Config for Runtime {
|
impl pallet_offences::Config for Runtime {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
|
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
|
||||||
type OnOffenceHandler = Staking;
|
type OnOffenceHandler = Staking;
|
||||||
type WeightSoftLimit = OffencesWeightSoftLimit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_authority_discovery::Config for Runtime {}
|
impl pallet_authority_discovery::Config for Runtime {}
|
||||||
|
|||||||
@@ -428,15 +428,10 @@ parameter_types! {
|
|||||||
pub const InstantAllowed: bool = true;
|
pub const InstantAllowed: bool = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
|
||||||
pub OffencesWeightSoftLimit: Weight = Perbill::from_percent(60) * BlockWeights::get().max_block;
|
|
||||||
}
|
|
||||||
|
|
||||||
impl pallet_offences::Config for Runtime {
|
impl pallet_offences::Config for Runtime {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
|
type IdentificationTuple = pallet_session::historical::IdentificationTuple<Self>;
|
||||||
type OnOffenceHandler = Staking;
|
type OnOffenceHandler = Staking;
|
||||||
type WeightSoftLimit = OffencesWeightSoftLimit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_authority_discovery::Config for Runtime {}
|
impl pallet_authority_discovery::Config for Runtime {}
|
||||||
|
|||||||
Reference in New Issue
Block a user