[][src]Trait sc_service::client::light::blockchain::RemoteBlockchain

pub trait RemoteBlockchain<Block>: Send + Sync where
    Block: Block
{ fn header(
        &self,
        id: BlockId<Block>
    ) -> Result<LocalOrRemote<<Block as Block>::Header, RemoteHeaderRequest<<Block as Block>::Header>>, Error>; }

Futures-based blockchain backend that either resolves blockchain data locally, or fetches required data from remote node.

Required methods

fn header(
    &self,
    id: BlockId<Block>
) -> Result<LocalOrRemote<<Block as Block>::Header, RemoteHeaderRequest<<Block as Block>::Header>>, Error>

Get block header.

Loading content...

Implementors

impl<S, Block: BlockT> RemoteBlockchain<Block> for Blockchain<S> where
    S: Storage<Block>, 
[src]

Loading content...