Skip to content

Commit

Permalink
Merge pull request #232 from pendulum-chain/intervention-23-05-03
Browse files Browse the repository at this point in the history
Implement new vote locking period for Pendulum
  • Loading branch information
TorstenStueber authored May 5, 2023
2 parents b13e39c + 395e85e commit e4cbd6c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions runtime/pendulum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("pendulum"),
impl_name: create_runtime_str!("pendulum"),
authoring_version: 1,
spec_version: 4,
spec_version: 7,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 4,
transaction_version: 7,
state_version: 1,
};

Expand Down Expand Up @@ -471,6 +471,7 @@ parameter_types! {
pub const EnactmentPeriod: BlockNumber = 2 * DAYS;
pub const CooloffPeriod: BlockNumber = 7 * DAYS;
pub const MaxProposals: u32 = 100;
pub const VoteLockingPeriod: u32 = 7 * DAYS;
}

impl pallet_democracy::Config for Runtime {
Expand All @@ -479,7 +480,7 @@ impl pallet_democracy::Config for Runtime {
type EnactmentPeriod = EnactmentPeriod;
type LaunchPeriod = LaunchPeriod;
type VotingPeriod = VotingPeriod;
type VoteLockingPeriod = EnactmentPeriod; // Same as EnactmentPeriod
type VoteLockingPeriod = VoteLockingPeriod;
type MinimumDeposit = MinimumDeposit;
/// A straight majority of the council can decide what their next motion is.
type ExternalOrigin =
Expand Down

0 comments on commit e4cbd6c

Please sign in to comment.