Skip to content

Commit

Permalink
Remove Useless Inherent Data Provider (#5750)
Browse files Browse the repository at this point in the history
* Remove Useless Inherent Data Provider

* Remove Unused Deps
  • Loading branch information
aurexav authored Jul 28, 2022
1 parent 1a8b087 commit 88cee48
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
12 changes: 0 additions & 12 deletions polkadot/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion polkadot/node/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
7 changes: 1 addition & 6 deletions polkadot/node/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -1138,7 +1133,7 @@ where
slot_duration,
);

Ok((timestamp, slot, uncles, parachain))
Ok((timestamp, slot, parachain))
}
},
force_authoring,
Expand Down

0 comments on commit 88cee48

Please sign in to comment.