mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-09 03:38:00 +00:00
Update to latest Polkadot & Substrate (#850)
* Update to latest Polkadot & Substrate * More fixes
This commit is contained in:
Generated
+237
-236
File diff suppressed because it is too large
Load Diff
@@ -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> {
|
||||
|
||||
@@ -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) =
|
||||
|
||||
@@ -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) =
|
||||
|
||||
@@ -185,6 +185,7 @@ pub fn validate_block(
|
||||
sp_io::SubstrateHostFunctions::host_functions(),
|
||||
1,
|
||||
None,
|
||||
2,
|
||||
);
|
||||
|
||||
executor
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user