Trait sc_client_api::backend::RemoteBackend [−][src]
pub trait RemoteBackend<Block: BlockT>: Backend<Block> { fn is_local_state_available(&self, block: &BlockId<Block>) -> bool; fn remote_blockchain(&self) -> Arc<dyn RemoteBlockchain<Block>>; }
Expand description
Mark for all Backend implementations, that are fetching required state data from remote nodes.
Required methods
fn is_local_state_available(&self, block: &BlockId<Block>) -> bool
fn is_local_state_available(&self, block: &BlockId<Block>) -> bool
Returns true if the state for given block is available locally.
fn remote_blockchain(&self) -> Arc<dyn RemoteBlockchain<Block>>
fn remote_blockchain(&self) -> Arc<dyn RemoteBlockchain<Block>>
Returns reference to blockchain backend.
Returned backend either resolves blockchain data locally, or prepares request to fetch that data from remote node.