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

Commit 8b9ca97

Browse files
Andrei NavoichykMRamanenkau
authored andcommitted
Set shorted duration
1 parent 454e9bd commit 8b9ca97

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
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: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
120120
// implementation changes and behavior does not, then leave spec_version as
121121
// is and increment impl_version.
122122
spec_version: 287,
123-
impl_version: 0,
123+
impl_version: 1,
124124
apis: RUNTIME_API_VERSIONS,
125125
transaction_version: 2,
126126
};
@@ -563,13 +563,13 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
563563
}
564564

565565
parameter_types! {
566-
pub const LaunchPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
567-
pub const VotingPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
568-
pub const FastTrackVotingPeriod: BlockNumber = 3 * 60 * MINUTES;
566+
pub const LaunchPeriod: BlockNumber = 5 * MINUTES;
567+
pub const VotingPeriod: BlockNumber = 5 * MINUTES;
568+
pub const FastTrackVotingPeriod: BlockNumber = 5 * MINUTES;
569569
pub const InstantAllowed: bool = true;
570-
pub const MinimumDeposit: Balance = 5000 * DOLLARS;
571-
pub const EnactmentPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
572-
pub const CooloffPeriod: BlockNumber = 7 * 24 * 60 * MINUTES;
570+
pub const MinimumDeposit: Balance = 10 * DOLLARS;
571+
pub const EnactmentPeriod: BlockNumber = 5 * MINUTES;
572+
pub const CooloffPeriod: BlockNumber = 5 * MINUTES;
573573
// One cent: $10,000 / MB
574574
pub const PreimageByteDeposit: Balance = 1 * CENTS;
575575
pub const MaxVotes: u32 = 100;
@@ -622,7 +622,7 @@ impl pallet_democracy::Config for Runtime {
622622
}
623623

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

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

676674
parameter_types! {
677-
pub const TechnicalMotionDuration: BlockNumber = 5 * DAYS;
675+
pub const TechnicalMotionDuration: BlockNumber = 5 * MINUTES;
678676
pub const TechnicalMaxProposals: u32 = 100;
679677
pub const TechnicalMaxMembers: u32 = 100;
680678
}
@@ -712,15 +710,15 @@ impl pallet_membership::Config<pallet_membership::Instance1> for Runtime {
712710
parameter_types! {
713711
pub const ProposalBond: Permill = Permill::from_percent(5);
714712
pub const ProposalBondMinimum: Balance = 100 * DOLLARS;
715-
pub const SpendPeriod: BlockNumber = 1 * DAYS;
713+
pub const SpendPeriod: BlockNumber = 5 * MINUTES;
716714
pub const Burn: Permill = Permill::from_percent(0);
717-
pub const TipCountdown: BlockNumber = 1 * DAYS;
715+
pub const TipCountdown: BlockNumber = 5 * MINUTES;
718716
pub const TipFindersFee: Percent = Percent::from_percent(20);
719717
pub const TipReportDepositBase: Balance = 1 * DOLLARS;
720718
pub const DataDepositPerByte: Balance = 1 * CENTS;
721719
pub const BountyDepositBase: Balance = 1 * DOLLARS;
722-
pub const BountyDepositPayoutDelay: BlockNumber = 8 * DAYS;
723-
pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry");
720+
pub const BountyDepositPayoutDelay: BlockNumber = 5 * MINUTES;
721+
pub const TreasuryModuleId: ModuleId = ModuleId(*b"py/trsry");
724722
pub const BountyUpdatePeriod: BlockNumber = 90 * DAYS;
725723
pub const MaximumReasonLength: u32 = 16384;
726724
pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);
@@ -976,12 +974,11 @@ parameter_types! {
976974
pub const CandidateDeposit: Balance = 10 * DOLLARS;
977975
pub const WrongSideDeduction: Balance = 2 * DOLLARS;
978976
pub const MaxStrikes: u32 = 10;
979-
pub const RotationPeriod: BlockNumber = 80 * HOURS;
977+
pub const RotationPeriod: BlockNumber = 5 * MINUTES;
980978
pub const PeriodSpend: Balance = 500 * DOLLARS;
981979
pub const MaxLockDuration: BlockNumber = 36 * 30 * DAYS;
982-
pub const ChallengePeriod: BlockNumber = 7 * DAYS;
983-
pub const MaxCandidateIntake: u32 = 10;
984-
pub const SocietyPalletId: PalletId = PalletId(*b"py/socie");
980+
pub const ChallengePeriod: BlockNumber = 15 * MINUTES;
981+
pub const SocietyModuleId: ModuleId = ModuleId(*b"py/socie");
985982
}
986983

987984
impl pallet_society::Config for Runtime {

0 commit comments

Comments
 (0)