Skip to content

Commit

Permalink
Shorten parachain-staking schedule delay (#3139)
Browse files Browse the repository at this point in the history
* Reduce staking schedule delay to 2 days

* bump versions
  • Loading branch information
Kailai-Wang authored Oct 20, 2024
1 parent f4731f6 commit 940792c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions parachain/runtime/litentry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
impl_name: create_runtime_str!("litentry-parachain"),
authoring_version: 1,
// same versioning-mechanism as polkadot: use last digit for minor updates
spec_version: 9201,
spec_version: 9202,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -810,15 +810,15 @@ impl pallet_parachain_staking::Config for Runtime {
/// Blocks per round
type DefaultBlocksPerRound = Period;
/// Rounds before the collator leaving the candidates request can be executed
type LeaveCandidatesDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type LeaveCandidatesDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the candidate bond increase/decrease can be executed
type CandidateBondLessDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type CandidateBondLessDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the delegator exit can be executed
type LeaveDelegatorsDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type LeaveDelegatorsDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the delegator revocation can be executed
type RevokeDelegationDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type RevokeDelegationDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the delegator bond increase/decrease can be executed
type DelegationBondLessDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type DelegationBondLessDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the reward is paid
type RewardPaymentDelay = ConstU32<2>;
/// Minimum collators selected per round, default at genesis and minimum forever after
Expand Down
12 changes: 6 additions & 6 deletions parachain/runtime/paseo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
impl_name: create_runtime_str!("paseo-parachain"),
authoring_version: 1,
// same versioning-mechanism as polkadot: use last digit for minor updates
spec_version: 9201,
spec_version: 9202,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -854,15 +854,15 @@ impl pallet_parachain_staking::Config for Runtime {
/// Blocks per round
type DefaultBlocksPerRound = ConstU32<{ prod_or_fast!(2 * MINUTES, 2) }>;
/// Rounds before the collator leaving the candidates request can be executed
type LeaveCandidatesDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type LeaveCandidatesDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the candidate bond increase/decrease can be executed
type CandidateBondLessDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type CandidateBondLessDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the delegator exit can be executed
type LeaveDelegatorsDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type LeaveDelegatorsDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the delegator revocation can be executed
type RevokeDelegationDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type RevokeDelegationDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the delegator bond increase/decrease can be executed
type DelegationBondLessDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type DelegationBondLessDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the reward is paid
type RewardPaymentDelay = ConstU32<2>;
/// Minimum collators selected per round, default at genesis and minimum forever after
Expand Down
12 changes: 6 additions & 6 deletions parachain/runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
impl_name: create_runtime_str!("rococo-parachain"),
authoring_version: 1,
// same versioning-mechanism as polkadot: use last digit for minor updates
spec_version: 9201,
spec_version: 9202,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -853,15 +853,15 @@ impl pallet_parachain_staking::Config for Runtime {
/// Blocks per round
type DefaultBlocksPerRound = ConstU32<{ prod_or_fast!(2 * MINUTES, 2) }>;
/// Rounds before the collator leaving the candidates request can be executed
type LeaveCandidatesDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type LeaveCandidatesDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the candidate bond increase/decrease can be executed
type CandidateBondLessDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type CandidateBondLessDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the delegator exit can be executed
type LeaveDelegatorsDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type LeaveDelegatorsDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the delegator revocation can be executed
type RevokeDelegationDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type RevokeDelegationDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the delegator bond increase/decrease can be executed
type DelegationBondLessDelay = ConstU32<{ prod_or_fast!(28, 1) }>;
type DelegationBondLessDelay = ConstU32<{ prod_or_fast!(8, 1) }>;
/// Rounds before the reward is paid
type RewardPaymentDelay = ConstU32<2>;
/// Minimum collators selected per round, default at genesis and minimum forever after
Expand Down

0 comments on commit 940792c

Please sign in to comment.