mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 17:31:03 +00:00
Update to latest substrate (#66)
* Update to latest substrate * Fix as much as I can * Store key out of Environment::init * Fix service compile
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
//! Polkadot chain configurations.
|
||||
|
||||
use primitives::{H256, AuthorityId, ed25519};
|
||||
use primitives::{H256, Ed25519AuthorityId as AuthorityId, ed25519};
|
||||
use polkadot_runtime::{
|
||||
GenesisConfig, ConsensusConfig, CouncilSeatsConfig, DemocracyConfig, TreasuryConfig,
|
||||
SessionConfig, StakingConfig, TimestampConfig, BalancesConfig, Perbill,
|
||||
@@ -82,6 +82,7 @@ fn staging_testnet_config_genesis() -> GenesisConfig {
|
||||
bonding_duration: 60 * MINUTES,
|
||||
offline_slash_grace: 4,
|
||||
minimum_validator_count: 4,
|
||||
invulnerables: initial_authorities.iter().cloned().map(Into::into).collect(),
|
||||
}),
|
||||
democracy: Some(DemocracyConfig {
|
||||
launch_period: 10 * MINUTES, // 1 day per public referendum
|
||||
@@ -184,6 +185,7 @@ fn testnet_genesis(initial_authorities: Vec<AuthorityId>, upgrade_key: H256) ->
|
||||
current_offline_slash: 0,
|
||||
current_session_reward: 0,
|
||||
offline_slash_grace: 0,
|
||||
invulnerables: initial_authorities.iter().cloned().map(Into::into).collect(),
|
||||
}),
|
||||
democracy: Some(DemocracyConfig {
|
||||
launch_period: 9,
|
||||
|
||||
@@ -179,6 +179,7 @@ construct_service_factory! {
|
||||
},
|
||||
link_half,
|
||||
grandpa::NetworkBridge::new(service.network()),
|
||||
service.on_exit(),
|
||||
)?;
|
||||
|
||||
executor.spawn(voter);
|
||||
@@ -228,6 +229,7 @@ construct_service_factory! {
|
||||
client,
|
||||
Arc::new(proposer_factory),
|
||||
service.network(),
|
||||
service.on_exit(),
|
||||
);
|
||||
|
||||
executor.spawn(task);
|
||||
@@ -273,4 +275,3 @@ construct_service_factory! {
|
||||
}},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user