Trait sc_light::blockchain::RemoteBlockchain [−][src]
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>; }
Expand description
Futures-based blockchain backend that either resolves blockchain data locally, or fetches required data from remote node.