Trait sc_light::blockchain::RemoteBlockchain [−][src]
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]
&self,
id: BlockId<Block>
) -> Result<LocalOrRemote<<Block as Block>::Header, RemoteHeaderRequest<<Block as Block>::Header>>, Error>
Get block header.
Implementors
impl<S, Block: BlockT> RemoteBlockchain<Block> for Blockchain<S> where
S: Storage<Block>,
[src]
S: Storage<Block>,
fn header(
&self,
id: BlockId<Block>
) -> ClientResult<LocalOrRemote<Block::Header, RemoteHeaderRequest<Block::Header>>>
[src]
&self,
id: BlockId<Block>
) -> ClientResult<LocalOrRemote<Block::Header, RemoteHeaderRequest<Block::Header>>>