Update to latest Polkadot & Substrate (#850)

* Update to latest Polkadot & Substrate

* More fixes
This commit is contained in:
Bastian Köcher
2021-12-10 12:08:41 +01:00
committed by GitHub
parent 90a7d1146a
commit 6c6802b67c
9 changed files with 257 additions and 244 deletions
+237 -236
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -198,8 +198,9 @@ impl sc_cli::CliConfiguration for NormalizedRunCmd {
fn prometheus_config(
&self,
default_listen_port: u16,
chain_spec: &Box<dyn sc_cli::ChainSpec>,
) -> sc_cli::Result<Option<PrometheusConfig>> {
self.base.prometheus_config(default_listen_port)
self.base.prometheus_config(default_listen_port, chain_spec)
}
fn disable_grandpa(&self) -> sc_cli::Result<bool> {
+1 -3
View File
@@ -16,9 +16,7 @@
use super::*;
use cumulus_primitives_core::XcmpMessageHandler;
use frame_support::assert_noop;
#[cfg(debug_assertions)]
use mock::Test;
use mock::{new_test_ext, Origin, XcmpQueue};
use mock::{new_test_ext, Origin, Test, XcmpQueue};
#[test]
fn one_message_does_not_panic() {
@@ -351,8 +351,12 @@ impl CliConfiguration<Self> for RelayChainCli {
self.base.base.rpc_ws(default_listen_port)
}
fn prometheus_config(&self, default_listen_port: u16) -> Result<Option<PrometheusConfig>> {
self.base.base.prometheus_config(default_listen_port)
fn prometheus_config(
&self,
default_listen_port: u16,
chain_spec: &Box<dyn ChainSpec>,
) -> Result<Option<PrometheusConfig>> {
self.base.base.prometheus_config(default_listen_port, chain_spec)
}
fn init<C: SubstrateCli>(&self) -> Result<()> {
@@ -114,6 +114,7 @@ where
config.wasm_method,
config.default_heap_pages,
config.max_runtime_instances,
config.runtime_cache_size,
);
let (client, backend, keystore_container, task_manager) =
+6 -2
View File
@@ -587,8 +587,12 @@ impl CliConfiguration<Self> for RelayChainCli {
self.base.base.rpc_ws(default_listen_port)
}
fn prometheus_config(&self, default_listen_port: u16) -> Result<Option<PrometheusConfig>> {
self.base.base.prometheus_config(default_listen_port)
fn prometheus_config(
&self,
default_listen_port: u16,
chain_spec: &Box<dyn ChainSpec>,
) -> Result<Option<PrometheusConfig>> {
self.base.base.prometheus_config(default_listen_port, chain_spec)
}
fn init<C: SubstrateCli>(&self) -> Result<()> {
@@ -211,6 +211,7 @@ where
config.wasm_method,
config.default_heap_pages,
config.max_runtime_instances,
config.runtime_cache_size,
);
let (client, backend, keystore_container, task_manager) =
+1
View File
@@ -185,6 +185,7 @@ pub fn validate_block(
sp_io::SubstrateHostFunctions::host_functions(),
1,
None,
2,
);
executor
+2
View File
@@ -124,6 +124,7 @@ pub fn new_partial(
config.wasm_method,
config.default_heap_pages,
config.max_runtime_instances,
config.runtime_cache_size,
);
let (client, backend, keystore_container, task_manager) =
@@ -639,6 +640,7 @@ pub fn node_config(
base_path: Some(base_path),
informant_output_format: Default::default(),
wasm_runtime_overrides: None,
runtime_cache_size: 2,
})
}