Skip to content

Commit

Permalink
Relaunch Rococo (paritytech#4577)
Browse files Browse the repository at this point in the history
* changed Rococos epoch to 1h

* Changed assigned_slots parameters to match ecosystem needs

* Update rococo chain spec

Co-authored-by: Santi Balaguer <[email protected]>
  • Loading branch information
2 people authored and Wizdave97 committed Feb 3, 2022
1 parent 9e47f94 commit 4d3965f
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 146 deletions.
300 changes: 158 additions & 142 deletions node/service/res/rococo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion runtime/rococo/constants/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub mod time {
pub const MILLISECS_PER_BLOCK: Moment = 6000;
pub const SLOT_DURATION: Moment = MILLISECS_PER_BLOCK;
frame_support::parameter_types! {
pub storage EpochDurationInBlocks: BlockNumber = 10 * MINUTES;
pub storage EpochDurationInBlocks: BlockNumber = 1 * HOURS;
}

// These time units are defined in number of blocks.
Expand Down
6 changes: 3 additions & 3 deletions runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -802,9 +802,9 @@ impl parachains_initializer::Config for Runtime {
impl paras_sudo_wrapper::Config for Runtime {}

parameter_types! {
pub const PermanentSlotLeasePeriodLength: u32 = 26;
pub const TemporarySlotLeasePeriodLength: u32 = 1;
pub const MaxPermanentSlots: u32 = 5;
pub const PermanentSlotLeasePeriodLength: u32 = 356;
pub const TemporarySlotLeasePeriodLength: u32 = 3;
pub const MaxPermanentSlots: u32 = 25;
pub const MaxTemporarySlots: u32 = 20;
pub const MaxTemporarySlotPerLeasePeriod: u32 = 5;
}
Expand Down

0 comments on commit 4d3965f

Please sign in to comment.