removes use of sc_client::Client from sc_network (#5147)

* removes use of sc_client::Client from sc_network

* rename BlockProvider to BlockBackend

* fix broken test
This commit is contained in:
Seun Lanlege authored and GitHub committed 2020-03-12 14:02:04 +01:00
1 parent 6e1b4cd560
commit 9898fc7e81
19 files changed
+105 -217

No files matched your search

@@ -50,8 +50,6 @@ pub trait BabeApi {
}
/// Implements the BabeRPC trait for interacting with Babe.
///
/// Uses a background thread to calculate epoch_authorship data.
pub struct BabeRPCHandler<B: BlockT, C, SC> {
/// shared reference to the client.
client: Arc<C>,
@@ -74,7 +72,6 @@ impl<B: BlockT, C, SC> BabeRPCHandler<B, C, SC> {
babe_config: Config,
select_chain: SC,
) -> Self {
Self {
client,
shared_epoch_changes,