From 871469acf97f0f233d0d50ebf80b414305a5c055 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Andres <11448715+al3mart@users.noreply.github.com> Date: Mon, 9 Dec 2024 19:11:18 +0100 Subject: [PATCH] chore(genesis): add genesis hrmp --- relay/paseo/src/genesis_config_presets.rs | 31 +++++++++++++++-------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/relay/paseo/src/genesis_config_presets.rs b/relay/paseo/src/genesis_config_presets.rs index aab7cbb..4024444 100644 --- a/relay/paseo/src/genesis_config_presets.rs +++ b/relay/paseo/src/genesis_config_presets.rs @@ -20,7 +20,11 @@ use crate::*; use babe_primitives::AuthorityId as BabeId; use pallet_staking::{Forcing, StakerStatus}; use paseo_runtime_constants::currency::UNITS as PAS; -use polkadot_primitives::{AccountPublic, AssignmentId, AsyncBackingParams, ExecutorParam::{MaxMemoryPages, PvfExecTimeout}, PvfExecKind}; +use polkadot_primitives::{ + AccountPublic, AssignmentId, AsyncBackingParams, + ExecutorParam::{MaxMemoryPages, PvfExecTimeout}, + PvfExecKind, +}; use runtime_parachains::configuration::HostConfiguration; use sp_core::{sr25519, Pair, Public}; use sp_genesis_builder::PresetId; @@ -89,11 +93,13 @@ fn testnet_accounts() -> Vec { fn default_parachains_host_configuration() -> HostConfiguration { use polkadot_primitives::{MAX_CODE_SIZE, MAX_POV_SIZE}; - let executor_parameteres = ExecutorParams::from(&[ - MaxMemoryPages(8192), - PvfExecTimeout(PvfExecKind::Backing, 2500), - PvfExecTimeout(PvfExecKind::Approval, 15000), - ][..]); + let executor_parameteres = ExecutorParams::from( + &[ + MaxMemoryPages(8192), + PvfExecTimeout(PvfExecKind::Backing, 2500), + PvfExecTimeout(PvfExecKind::Approval, 15000), + ][..], + ); runtime_parachains::configuration::HostConfiguration { validation_upgrade_cooldown: 2u32, @@ -103,17 +109,17 @@ fn default_parachains_host_configuration() -> HostConfiguration::new(), + } }) }