mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-17 05:25:42 +00:00
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:
@@ -20,7 +20,7 @@ use std::sync::Arc;
|
||||
use rpc::futures::future::result;
|
||||
|
||||
use sc_rpc_api::Subscriptions;
|
||||
use sc_client_api::{BlockchainEvents, BlockBody};
|
||||
use sc_client_api::{BlockchainEvents, BlockBackend};
|
||||
use sp_runtime::{generic::{BlockId, SignedBlock}, traits::{Block as BlockT}};
|
||||
|
||||
use super::{ChainBackend, client_err, error::FutureResult};
|
||||
@@ -50,7 +50,7 @@ impl<Block: BlockT, Client> FullChain<Block, Client> {
|
||||
|
||||
impl<Block, Client> ChainBackend<Client, Block> for FullChain<Block, Client> where
|
||||
Block: BlockT + 'static,
|
||||
Client: BlockBody<Block> + HeaderBackend<Block> + BlockchainEvents<Block> + 'static,
|
||||
Client: BlockBackend<Block> + HeaderBackend<Block> + BlockchainEvents<Block> + 'static,
|
||||
{
|
||||
fn client(&self) -> &Arc<Client> {
|
||||
&self.client
|
||||
|
||||
Reference in New Issue
Block a user