mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
Update substrate & polkadot (#82)
This commit is contained in:
@@ -102,6 +102,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
spec_version: 4,
|
||||
impl_version: 4,
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
transaction_version: 1,
|
||||
};
|
||||
|
||||
pub const MILLISECS_PER_BLOCK: u64 = 6000;
|
||||
@@ -171,6 +172,7 @@ impl frame_system::Trait for Runtime {
|
||||
type AccountData = pallet_balances::AccountData<Balance>;
|
||||
type OnNewAccount = ();
|
||||
type OnKilledAccount = Balances;
|
||||
type DbWeight = ();
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
|
||||
@@ -27,7 +27,6 @@ use sc_client::genesis;
|
||||
use sc_network::config::TransportConfig;
|
||||
use sc_service::{
|
||||
config::{NetworkConfiguration, NodeKeyConfig, PrometheusConfig},
|
||||
Configuration, Role as ServiceRole,
|
||||
};
|
||||
use sp_core::hexdisplay::HexDisplay;
|
||||
use sp_runtime::{
|
||||
@@ -194,6 +193,7 @@ pub fn run() -> Result<()> {
|
||||
|
||||
crate::service::run_collator(config, key, polkadot_config)
|
||||
},
|
||||
parachain_runtime::VERSION,
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -277,7 +277,7 @@ impl CliConfiguration for PolkadotCli {
|
||||
&self,
|
||||
chain_spec: &Box<dyn sc_service::ChainSpec>,
|
||||
is_dev: bool,
|
||||
net_config_dir: &PathBuf,
|
||||
net_config_dir: PathBuf,
|
||||
client_id: &str,
|
||||
node_name: &str,
|
||||
node_key: NodeKeyConfig,
|
||||
@@ -289,7 +289,7 @@ impl CliConfiguration for PolkadotCli {
|
||||
x.network_config(
|
||||
chain_spec,
|
||||
is_dev,
|
||||
net_config_dir,
|
||||
Some(net_config_dir),
|
||||
client_id,
|
||||
node_name,
|
||||
node_key,
|
||||
|
||||
@@ -49,9 +49,9 @@ macro_rules! new_full_start {
|
||||
crate::service::Executor,
|
||||
>($config)?
|
||||
.with_select_chain(|_config, backend| Ok(sc_client::LongestChain::new(backend.clone())))?
|
||||
.with_transaction_pool(|config, client, _| {
|
||||
.with_transaction_pool(|config, client, _fetcher, prometheus_registry| {
|
||||
let pool_api = Arc::new(sc_transaction_pool::FullChainApi::new(client.clone()));
|
||||
let pool = sc_transaction_pool::BasicPool::new(config, pool_api);
|
||||
let pool = sc_transaction_pool::BasicPool::new(config, pool_api, prometheus_registry);
|
||||
Ok(pool)
|
||||
})?
|
||||
.with_import_queue(|_config, client, _, _| {
|
||||
|
||||
Reference in New Issue
Block a user