Skip to content

Commit

Permalink
fix: adjust relay HostConfig genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
al3mart committed Sep 12, 2024
1 parent 24c849d commit 8b0bace
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions relay/paseo/src/genesis_config_presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
use crate::*;
use babe_primitives::AuthorityId as BabeId;
use pallet_staking::{Forcing, StakerStatus};
use polkadot_primitives::{AccountPublic, AssignmentId, AsyncBackingParams};
use paseo_runtime_constants::currency::UNITS as PAS;
use polkadot_primitives::{
v7::{ExecutorParam, ExecutorParams, PvfExecKind},
AccountPublic, AssignmentId, AsyncBackingParams,
};
use runtime_parachains::configuration::HostConfiguration;
use sp_core::{sr25519, Pair, Public};
use sp_runtime::{traits::IdentifyAccount, Perbill};
Expand Down Expand Up @@ -95,26 +98,26 @@ fn default_parachains_host_configuration() -> HostConfiguration<polkadot_primiti
max_code_size: MAX_CODE_SIZE,
max_pov_size: MAX_POV_SIZE,
max_head_data_size: 32 * 1024,
max_upward_queue_count: 8,
max_upward_queue_count: 174762,
max_upward_queue_size: 1024 * 1024,
max_downward_message_size: 1024 * 1024,
max_upward_message_size: 50 * 1024,
max_upward_message_num_per_candidate: 5,
max_upward_message_num_per_candidate: 16,
hrmp_sender_deposit: 0,
hrmp_recipient_deposit: 0,
hrmp_channel_max_capacity: 8,
hrmp_channel_max_total_size: 8 * 1024,
hrmp_max_parachain_inbound_channels: 4,
hrmp_channel_max_message_size: 1024 * 1024,
hrmp_max_parachain_outbound_channels: 4,
hrmp_max_message_num_per_candidate: 5,
hrmp_channel_max_capacity: 1000,
hrmp_channel_max_total_size: 100 * 1024,
hrmp_max_parachain_inbound_channels: 128,
hrmp_channel_max_message_size: 100 * 1024,
hrmp_max_parachain_outbound_channels: 128,
hrmp_max_message_num_per_candidate: 10,
dispute_period: 6,
no_show_slots: 2,
n_delay_tranches: 25,
needed_approvals: 2,
relay_vrf_modulo_samples: 2,
zeroth_delay_tranche_width: 0,
minimum_validation_upgrade_delay: 5,
minimum_validation_upgrade_delay: 20,
scheduler_params: polkadot_primitives::vstaging::SchedulerParams {
group_rotation_frequency: 20,
paras_availability_period: 4,
Expand All @@ -124,10 +127,10 @@ fn default_parachains_host_configuration() -> HostConfiguration<polkadot_primiti
minimum_backing_votes: 1,
node_features: NodeFeatures::EMPTY,
async_backing_params: AsyncBackingParams {
max_candidate_depth: 2,
max_candidate_depth: 3,
allowed_ancestry_len: 2,
},
executor_params: Default::default(),
executor_params: Defaul::default(),
max_validators: None,
pvf_voting_ttl: 2,
approval_voting_params: ApprovalVotingParams { max_approval_coalesce_count: 1 },
Expand Down

0 comments on commit 8b0bace

Please sign in to comment.