Skip to content

Commit

Permalink
Explicit default for testnet HostConfiguration (polkadot-fellows#368)
Browse files Browse the repository at this point in the history
close polkadot-fellows#362 

- [x] Does not require a CHANGELOG entry

---------

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: fellowship-merge-bot[bot] <151052383+fellowship-merge-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 3, 2024
1 parent 78c4600 commit 02f497d
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions chain-spec-generator/src/relay_chain_specs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ use beefy_primitives::ecdsa_crypto::AuthorityId as BeefyId;
use grandpa::AuthorityId as GrandpaId;
use kusama_runtime_constants::currency::UNITS as KSM;
use pallet_staking::Forcing;
use polkadot_primitives::{AccountId, AccountPublic, AssignmentId, ValidatorId};
use polkadot_primitives::{
vstaging::{ApprovalVotingParams, NodeFeatures},
AccountId, AccountPublic, AssignmentId, AsyncBackingParams, ValidatorId,
ON_DEMAND_DEFAULT_QUEUE_MAX_SIZE,
};
use polkadot_runtime_constants::currency::UNITS as DOT;
use runtime_parachains::configuration::HostConfiguration;
use sc_chain_spec::{ChainSpec, ChainType, NoExtension};
Expand Down Expand Up @@ -76,7 +80,26 @@ fn default_parachains_host_configuration() -> HostConfiguration<polkadot_primiti
relay_vrf_modulo_samples: 2,
zeroth_delay_tranche_width: 0,
minimum_validation_upgrade_delay: 5,
..Default::default()
dispute_post_conclusion_acceptance_period: 100u32,
scheduling_lookahead: 1,
max_validators_per_core: Default::default(),
coretime_cores: Default::default(),
on_demand_retries: Default::default(),
on_demand_queue_max_size: ON_DEMAND_DEFAULT_QUEUE_MAX_SIZE,
on_demand_target_queue_utilization: Perbill::from_percent(25),
on_demand_fee_variability: Perbill::from_percent(3),
on_demand_base_fee: 10_000_000u128,
minimum_backing_votes: 1,
node_features: NodeFeatures::EMPTY,
async_backing_params: AsyncBackingParams {
max_candidate_depth: 2,
allowed_ancestry_len: 2,
},
executor_params: Default::default(),
on_demand_ttl: 5,
max_validators: None,
pvf_voting_ttl: 2,
approval_voting_params: ApprovalVotingParams { max_approval_coalesce_count: 1 },
}
}

Expand Down

0 comments on commit 02f497d

Please sign in to comment.