mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 05:41:07 +00:00
Remove CanAuthorWith trait (#5986)
* Remove CanAuthorWith trait
CanAuthotWith trait removed. Also all dependencies, parameters, type
paramers were removed. This is related to removal of native runtime.
* update lockfile for {"substrate"}
* Ensure we use unique directories after the recent change to `new_temp_dir`
Co-authored-by: parity-processbot <>
Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
committed by
GitHub
parent
3bf1a66541
commit
85f9ad25fe
Generated
+202
-173
File diff suppressed because it is too large
Load Diff
@@ -50,7 +50,7 @@ use {
|
|||||||
peer_set::PeerSetProtocolNames, request_response::ReqProtocolNames,
|
peer_set::PeerSetProtocolNames, request_response::ReqProtocolNames,
|
||||||
},
|
},
|
||||||
polkadot_overseer::BlockInfo,
|
polkadot_overseer::BlockInfo,
|
||||||
sc_client_api::{BlockBackend, ExecutorProvider},
|
sc_client_api::BlockBackend,
|
||||||
sp_core::traits::SpawnNamed,
|
sp_core::traits::SpawnNamed,
|
||||||
sp_trie::PrefixedMemoryDB,
|
sp_trie::PrefixedMemoryDB,
|
||||||
};
|
};
|
||||||
@@ -545,7 +545,6 @@ where
|
|||||||
},
|
},
|
||||||
&task_manager.spawn_essential_handle(),
|
&task_manager.spawn_essential_handle(),
|
||||||
config.prometheus_registry(),
|
config.prometheus_registry(),
|
||||||
consensus_common::CanAuthorWithNativeVersion::new(client.executor().clone()),
|
|
||||||
telemetry.as_ref().map(|x| x.handle()),
|
telemetry.as_ref().map(|x| x.handle()),
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
@@ -1114,9 +1113,6 @@ where
|
|||||||
};
|
};
|
||||||
|
|
||||||
if role.is_authority() {
|
if role.is_authority() {
|
||||||
let can_author_with =
|
|
||||||
consensus_common::CanAuthorWithNativeVersion::new(client.executor().clone());
|
|
||||||
|
|
||||||
let proposer = sc_basic_authorship::ProposerFactory::new(
|
let proposer = sc_basic_authorship::ProposerFactory::new(
|
||||||
task_manager.spawn_handle(),
|
task_manager.spawn_handle(),
|
||||||
client.clone(),
|
client.clone(),
|
||||||
@@ -1162,7 +1158,6 @@ where
|
|||||||
force_authoring,
|
force_authoring,
|
||||||
backoff_authoring_blocks,
|
backoff_authoring_blocks,
|
||||||
babe_link,
|
babe_link,
|
||||||
can_author_with,
|
|
||||||
block_proposal_slot_portion: babe::SlotProportion::new(2f32 / 3f32),
|
block_proposal_slot_portion: babe::SlotProportion::new(2f32 / 3f32),
|
||||||
max_block_proposal_slot_portion: None,
|
max_block_proposal_slot_portion: None,
|
||||||
telemetry: telemetry.as_ref().map(|x| x.handle()),
|
telemetry: telemetry.as_ref().map(|x| x.handle()),
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ pub fn node_config(
|
|||||||
is_validator: bool,
|
is_validator: bool,
|
||||||
) -> Configuration {
|
) -> Configuration {
|
||||||
let base_path = BasePath::new_temp_dir().expect("could not create temporary directory");
|
let base_path = BasePath::new_temp_dir().expect("could not create temporary directory");
|
||||||
let root = base_path.path();
|
let root = base_path.path().join(key.to_string());
|
||||||
let role = if is_validator { Role::Authority } else { Role::Full };
|
let role = if is_validator { Role::Authority } else { Role::Full };
|
||||||
let key_seed = key.to_seed();
|
let key_seed = key.to_seed();
|
||||||
let mut spec = polkadot_local_testnet_config();
|
let mut spec = polkadot_local_testnet_config();
|
||||||
|
|||||||
Reference in New Issue
Block a user