Trait sc_light::blockchain::RemoteBlockchain[][src]

pub trait RemoteBlockchain<Block>: Send + Sync where
    Block: Block
{ pub 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

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

Get block header.

Loading content...

Implementors

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

Loading content...