[][src]Trait sc_client_api::backend::RemoteBackend

pub trait RemoteBackend<Block: BlockT>: Backend<Block> {
    pub fn is_local_state_available(&self, block: &BlockId<Block>) -> bool;
pub fn remote_blockchain(&self) -> Arc<dyn RemoteBlockchain<Block>>; }

Mark for all Backend implementations, that are fetching required state data from remote nodes.

Required methods

pub fn is_local_state_available(&self, block: &BlockId<Block>) -> bool

Returns true if the state for given block is available locally.

pub 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.

Loading content...

Implementors

impl<Block: BlockT> RemoteBackend<Block> for Backend<Block> where
    Block::Hash: Ord
[src]

Loading content...