mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
Set new staking limits (#3299)
* Set staking limits * Set westend limits as well * Update runtime/kusama/src/lib.rs Co-authored-by: Gavin Wood <gavin@parity.io> Co-authored-by: Gavin Wood <gavin@parity.io>
This commit is contained in:
@@ -1105,10 +1105,23 @@ pub type Executive = frame_executive::Executive<
|
||||
frame_system::ChainContext<Runtime>,
|
||||
Runtime,
|
||||
AllPallets,
|
||||
SetStakingLimits,
|
||||
>;
|
||||
/// The payload being signed in transactions.
|
||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||
|
||||
pub struct SetStakingLimits;
|
||||
impl frame_support::traits::OnRuntimeUpgrade for SetStakingLimits {
|
||||
fn on_runtime_upgrade() -> Weight {
|
||||
<pallet_staking::MinNominatorBond<Runtime>>::put(1 * UNITS);
|
||||
<pallet_staking::MaxNominatorsCount<Runtime>>::put(1000);
|
||||
<pallet_staking::MinValidatorBond<Runtime>>::put(10 * UNITS);
|
||||
<pallet_staking::MaxValidatorsCount<Runtime>>::put(10);
|
||||
|
||||
<Runtime as frame_system::Config>::DbWeight::get().writes(4)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "disable-runtime-api"))]
|
||||
sp_api::impl_runtime_apis! {
|
||||
impl sp_api::Core<Block> for Runtime {
|
||||
|
||||
Reference in New Issue
Block a user