From 88cee48d1e0d1ec0db0e85a40c15e372ae064948 Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Fri, 29 Jul 2022 06:27:26 +0800 Subject: [PATCH] Remove Useless Inherent Data Provider (#5750) * Remove Useless Inherent Data Provider * Remove Unused Deps --- polkadot/Cargo.lock | 12 ------------ polkadot/node/service/Cargo.toml | 1 - polkadot/node/service/src/lib.rs | 7 +------ 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/polkadot/Cargo.lock b/polkadot/Cargo.lock index 73cacb0ee4..31ee233290 100644 --- a/polkadot/Cargo.lock +++ b/polkadot/Cargo.lock @@ -7195,7 +7195,6 @@ dependencies = [ "sc-consensus", "sc-consensus-babe", "sc-consensus-slots", - "sc-consensus-uncles", "sc-executor", "sc-finality-grandpa", "sc-keystore", @@ -8734,17 +8733,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "sc-consensus-uncles" -version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#fdfdc73f9e64dc47934b72eb9af3e1989e4ba699" -dependencies = [ - "sc-client-api", - "sp-authorship", - "sp-runtime", - "thiserror", -] - [[package]] name = "sc-executor" version = "0.10.0-dev" diff --git a/polkadot/node/service/Cargo.toml b/polkadot/node/service/Cargo.toml index 0a097de886..1649d6de9d 100644 --- a/polkadot/node/service/Cargo.toml +++ b/polkadot/node/service/Cargo.toml @@ -15,7 +15,6 @@ sc-block-builder = { git = "https://github.com/paritytech/substrate", branch = " sc-chain-spec = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-client-db = { git = "https://github.com/paritytech/substrate", branch = "master" } -sc-consensus-uncles = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-consensus-slots = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/polkadot/node/service/src/lib.rs b/polkadot/node/service/src/lib.rs index f199bbdbc0..a6ce2fa4ad 100644 --- a/polkadot/node/service/src/lib.rs +++ b/polkadot/node/service/src/lib.rs @@ -1125,11 +1125,6 @@ where parent, ).await.map_err(|e| Box::new(e))?; - let uncles = sc_consensus_uncles::create_uncles_inherent_data_provider( - &*client_clone, - parent, - )?; - let timestamp = sp_timestamp::InherentDataProvider::from_system_time(); let slot = @@ -1138,7 +1133,7 @@ where slot_duration, ); - Ok((timestamp, slot, uncles, parachain)) + Ok((timestamp, slot, parachain)) } }, force_authoring,