Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shorten parachain-staking schedule delay #3139

Merged
merged 3 commits into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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