Update polkadot & substrate (#55)

This commit is contained in:
Cecile Tonglet
2020-02-10 18:01:59 +01:00
committed by GitHub
parent 2941569e8a
commit e880fe43e9
12 changed files with 1648 additions and 1635 deletions
-1
View File
@@ -95,7 +95,6 @@ fn testnet_genesis(
.cloned()
.map(|k| (k, 1 << 60))
.collect(),
vesting: vec![],
}),
pallet_sudo: Some(SudoConfig { key: root_key }),
}
+5 -12
View File
@@ -81,12 +81,8 @@ pub fn run(version: VersionInfo) -> error::Result<()> {
},
None => {
sc_cli::init(&opt.run.shared_params, &version)?;
sc_cli::load_spec(&mut config, &opt.run.shared_params, load_spec)?;
sc_cli::update_config_for_running_node(
&mut config,
opt.run,
&version,
)?;
sc_cli::init_config(&mut config, &opt.run.shared_params, &version, load_spec)?;
sc_cli::update_config_for_running_node(&mut config, opt.run)?;
info!("{}", version.name);
info!(" version {}", config.full_version());
@@ -107,16 +103,13 @@ pub fn run(version: VersionInfo) -> error::Result<()> {
polkadot_config.rpc_ws = Some(DEFAULT_POLKADOT_RPC_WS.parse().unwrap());
polkadot_config.grafana_port = Some(DEFAULT_POLKADOT_GRAFANA_PORT.parse().unwrap());
sc_cli::load_spec(
sc_cli::init_config(
&mut polkadot_config,
&polkadot_opt.run.shared_params,
&version,
load_spec_polkadot,
)?;
sc_cli::update_config_for_running_node(
&mut polkadot_config,
polkadot_opt.run,
&version,
)?;
sc_cli::update_config_for_running_node(&mut polkadot_config, polkadot_opt.run)?;
match config.roles {
ServiceRoles::LIGHT => unimplemented!("Light client not supported!"),