Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit default for testnet HostConfiguration #368

Merged
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
LEGACY_MIN_BACKING_VOTES, ON_DEMAND_DEFAULT_QUEUE_MAX_SIZE,
bkchr marked this conversation as resolved.
Show resolved Hide resolved
};
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.into(),
bkchr marked this conversation as resolved.
Show resolved Hide resolved
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
Loading