mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
Remove uncles related code (#13216)
The code was added without any clear usage. The inherent for example is not benchmarked and not used.
This commit is contained in:
@@ -222,10 +222,7 @@ pub fn new_partial(
|
||||
slot_duration,
|
||||
);
|
||||
|
||||
let uncles =
|
||||
sp_authorship::InherentDataProvider::<<Block as BlockT>::Header>::check_inherents();
|
||||
|
||||
Ok((slot, timestamp, uncles))
|
||||
Ok((slot, timestamp))
|
||||
},
|
||||
&task_manager.spawn_essential_handle(),
|
||||
config.prometheus_registry(),
|
||||
@@ -440,11 +437,6 @@ pub fn new_full_base(
|
||||
create_inherent_data_providers: move |parent, ()| {
|
||||
let client_clone = client_clone.clone();
|
||||
async move {
|
||||
let uncles = sc_consensus_uncles::create_uncles_inherent_data_provider(
|
||||
&*client_clone,
|
||||
parent,
|
||||
)?;
|
||||
|
||||
let timestamp = sp_timestamp::InherentDataProvider::from_system_time();
|
||||
|
||||
let slot =
|
||||
@@ -459,7 +451,7 @@ pub fn new_full_base(
|
||||
&parent,
|
||||
)?;
|
||||
|
||||
Ok((slot, timestamp, uncles, storage_proof))
|
||||
Ok((slot, timestamp, storage_proof))
|
||||
}
|
||||
},
|
||||
force_authoring,
|
||||
|
||||
Reference in New Issue
Block a user