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

Commit 4099198

Browse files
Andrei NavoichykMRamanenkau
authored andcommitted
Set shorted duration
1 parent cec97c5 commit 4099198

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/build-and-push-docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- dev-cere
6-
- 'feature/**'
6+
- feature/decrease-durations-for-simulations
77
env:
88
ECR_REPOSITORY: pos-network-node
99
jobs:

bin/node/runtime/src/lib.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -587,13 +587,13 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
587587
}
588588

589589
parameter_types! {
590-
pub const LaunchPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
591-
pub const VotingPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
592-
pub const FastTrackVotingPeriod: BlockNumber = 3 * 60 * MINUTES;
590+
pub const LaunchPeriod: BlockNumber = 5 * MINUTES;
591+
pub const VotingPeriod: BlockNumber = 5 * MINUTES;
592+
pub const FastTrackVotingPeriod: BlockNumber = 5 * MINUTES;
593593
pub const InstantAllowed: bool = true;
594-
pub const MinimumDeposit: Balance = 5000 * DOLLARS;
595-
pub const EnactmentPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
596-
pub const CooloffPeriod: BlockNumber = 7 * 24 * 60 * MINUTES;
594+
pub const MinimumDeposit: Balance = 10 * DOLLARS;
595+
pub const EnactmentPeriod: BlockNumber = 5 * MINUTES;
596+
pub const CooloffPeriod: BlockNumber = 5 * MINUTES;
597597
// One cent: $10,000 / MB
598598
pub const PreimageByteDeposit: Balance = 1 * CENTS;
599599
pub const MaxVotes: u32 = 100;
@@ -646,7 +646,7 @@ impl pallet_democracy::Config for Runtime {
646646
}
647647

648648
parameter_types! {
649-
pub const CouncilMotionDuration: BlockNumber = 7 * DAYS;
649+
pub const CouncilMotionDuration: BlockNumber = 5 * MINUTES;
650650
pub const CouncilMaxProposals: u32 = 100;
651651
pub const CouncilMaxMembers: u32 = 100;
652652
}
@@ -668,7 +668,7 @@ parameter_types! {
668668
// 1 storage item created, key size is 32 bytes, value size is 16+16.
669669
pub const VotingBondBase: Balance = deposit(1, 64);
670670
pub const VotingBondFactor: Balance = 1 * DOLLARS;
671-
pub const TermDuration: BlockNumber = 7 * DAYS;
671+
pub const TermDuration: BlockNumber = 5 * MINUTES;
672672
pub const DesiredMembers: u32 = 13;
673673
pub const DesiredRunnersUp: u32 = 20;
674674
pub const ElectionsPhragmenPalletId: LockIdentifier = *b"phrelect";
@@ -698,7 +698,7 @@ impl pallet_elections_phragmen::Config for Runtime {
698698
}
699699

700700
parameter_types! {
701-
pub const TechnicalMotionDuration: BlockNumber = 5 * DAYS;
701+
pub const TechnicalMotionDuration: BlockNumber = 5 * MINUTES;
702702
pub const TechnicalMaxProposals: u32 = 100;
703703
pub const TechnicalMaxMembers: u32 = 100;
704704
}
@@ -736,14 +736,14 @@ impl pallet_membership::Config<pallet_membership::Instance1> for Runtime {
736736
parameter_types! {
737737
pub const ProposalBond: Permill = Permill::from_percent(5);
738738
pub const ProposalBondMinimum: Balance = 100 * DOLLARS;
739-
pub const SpendPeriod: BlockNumber = 1 * DAYS;
739+
pub const SpendPeriod: BlockNumber = 5 * MINUTES;
740740
pub const Burn: Permill = Permill::from_percent(0);
741-
pub const TipCountdown: BlockNumber = 1 * DAYS;
741+
pub const TipCountdown: BlockNumber = 5 * MINUTES;
742742
pub const TipFindersFee: Percent = Percent::from_percent(20);
743743
pub const TipReportDepositBase: Balance = 1 * DOLLARS;
744744
pub const DataDepositPerByte: Balance = 1 * CENTS;
745745
pub const BountyDepositBase: Balance = 1 * DOLLARS;
746-
pub const BountyDepositPayoutDelay: BlockNumber = 8 * DAYS;
746+
pub const BountyDepositPayoutDelay: BlockNumber = 5 * MINUTES;
747747
pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry");
748748
pub const BountyUpdatePeriod: BlockNumber = 90 * DAYS;
749749
pub const MaximumReasonLength: u32 = 16384;
@@ -998,10 +998,10 @@ parameter_types! {
998998
pub const CandidateDeposit: Balance = 10 * DOLLARS;
999999
pub const WrongSideDeduction: Balance = 2 * DOLLARS;
10001000
pub const MaxStrikes: u32 = 10;
1001-
pub const RotationPeriod: BlockNumber = 80 * HOURS;
1001+
pub const RotationPeriod: BlockNumber = 5 * MINUTES;
10021002
pub const PeriodSpend: Balance = 500 * DOLLARS;
10031003
pub const MaxLockDuration: BlockNumber = 36 * 30 * DAYS;
1004-
pub const ChallengePeriod: BlockNumber = 7 * DAYS;
1004+
pub const ChallengePeriod: BlockNumber = 15 * MINUTES;
10051005
pub const MaxCandidateIntake: u32 = 10;
10061006
pub const SocietyPalletId: PalletId = PalletId(*b"py/socie");
10071007
}

0 commit comments

Comments
 (0)