Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
Set shorted duration
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Navoichyk authored and MRamanenkau committed Oct 21, 2022
1 parent 454e9bd commit 86c51fc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- dev-cere
- 'feature/**'
- feature/decrease-durations-for-simulations
env:
ECR_REPOSITORY: pos-network-node
jobs:
Expand Down
37 changes: 17 additions & 20 deletions bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,13 +563,13 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
}

parameter_types! {
pub const LaunchPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
pub const VotingPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
pub const FastTrackVotingPeriod: BlockNumber = 3 * 60 * MINUTES;
pub const LaunchPeriod: BlockNumber = 5 * MINUTES;
pub const VotingPeriod: BlockNumber = 5 * MINUTES;
pub const FastTrackVotingPeriod: BlockNumber = 5 * MINUTES;
pub const InstantAllowed: bool = true;
pub const MinimumDeposit: Balance = 5000 * DOLLARS;
pub const EnactmentPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
pub const CooloffPeriod: BlockNumber = 7 * 24 * 60 * MINUTES;
pub const MinimumDeposit: Balance = 10 * DOLLARS;
pub const EnactmentPeriod: BlockNumber = 5 * MINUTES;
pub const CooloffPeriod: BlockNumber = 5 * MINUTES;
// One cent: $10,000 / MB
pub const PreimageByteDeposit: Balance = 1 * CENTS;
pub const MaxVotes: u32 = 100;
Expand Down Expand Up @@ -622,7 +622,7 @@ impl pallet_democracy::Config for Runtime {
}

parameter_types! {
pub const CouncilMotionDuration: BlockNumber = 7 * DAYS;
pub const CouncilMotionDuration: BlockNumber = 5 * MINUTES;
pub const CouncilMaxProposals: u32 = 100;
pub const CouncilMaxMembers: u32 = 100;
}
Expand All @@ -641,10 +641,8 @@ impl pallet_collective::Config<CouncilCollective> for Runtime {

parameter_types! {
pub const CandidacyBond: Balance = 100 * DOLLARS;
// 1 storage item created, key size is 32 bytes, value size is 16+16.
pub const VotingBondBase: Balance = deposit(1, 64);
pub const VotingBondFactor: Balance = 1 * DOLLARS;
pub const TermDuration: BlockNumber = 7 * DAYS;
pub const VotingBond: Balance = 1 * DOLLARS;
pub const TermDuration: BlockNumber = 5 * MINUTES;
pub const DesiredMembers: u32 = 13;
pub const DesiredRunnersUp: u32 = 20;
pub const ElectionsPhragmenPalletId: LockIdentifier = *b"phrelect";
Expand Down Expand Up @@ -674,7 +672,7 @@ impl pallet_elections_phragmen::Config for Runtime {
}

parameter_types! {
pub const TechnicalMotionDuration: BlockNumber = 5 * DAYS;
pub const TechnicalMotionDuration: BlockNumber = 5 * MINUTES;
pub const TechnicalMaxProposals: u32 = 100;
pub const TechnicalMaxMembers: u32 = 100;
}
Expand Down Expand Up @@ -712,15 +710,15 @@ impl pallet_membership::Config<pallet_membership::Instance1> for Runtime {
parameter_types! {
pub const ProposalBond: Permill = Permill::from_percent(5);
pub const ProposalBondMinimum: Balance = 100 * DOLLARS;
pub const SpendPeriod: BlockNumber = 1 * DAYS;
pub const SpendPeriod: BlockNumber = 5 * MINUTES;
pub const Burn: Permill = Permill::from_percent(0);
pub const TipCountdown: BlockNumber = 1 * DAYS;
pub const TipCountdown: BlockNumber = 5 * MINUTES;
pub const TipFindersFee: Percent = Percent::from_percent(20);
pub const TipReportDepositBase: Balance = 1 * DOLLARS;
pub const DataDepositPerByte: Balance = 1 * CENTS;
pub const BountyDepositBase: Balance = 1 * DOLLARS;
pub const BountyDepositPayoutDelay: BlockNumber = 8 * DAYS;
pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry");
pub const BountyDepositPayoutDelay: BlockNumber = 5 * MINUTES;
pub const TreasuryModuleId: ModuleId = ModuleId(*b"py/trsry");
pub const BountyUpdatePeriod: BlockNumber = 90 * DAYS;
pub const MaximumReasonLength: u32 = 16384;
pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);
Expand Down Expand Up @@ -976,12 +974,11 @@ parameter_types! {
pub const CandidateDeposit: Balance = 10 * DOLLARS;
pub const WrongSideDeduction: Balance = 2 * DOLLARS;
pub const MaxStrikes: u32 = 10;
pub const RotationPeriod: BlockNumber = 80 * HOURS;
pub const RotationPeriod: BlockNumber = 5 * MINUTES;
pub const PeriodSpend: Balance = 500 * DOLLARS;
pub const MaxLockDuration: BlockNumber = 36 * 30 * DAYS;
pub const ChallengePeriod: BlockNumber = 7 * DAYS;
pub const MaxCandidateIntake: u32 = 10;
pub const SocietyPalletId: PalletId = PalletId(*b"py/socie");
pub const ChallengePeriod: BlockNumber = 15 * MINUTES;
pub const SocietyModuleId: ModuleId = ModuleId(*b"py/socie");
}

impl pallet_society::Config for Runtime {
Expand Down

0 comments on commit 86c51fc

Please sign in to comment.