[]Trait polymesh::service::RemoteBackend

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

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> + 'static>

Returns reference to blockchain backend.

Returned backend either resolves blockchain data locally, or prepares request to fetch that data from remote node.

Loading content...

Implementations on Foreign Types

impl<Block> RemoteBackend<Block> for Backend<Block> where
    Block: Block,
    <Block as Block>::Hash: Ord

impl<S, Block> RemoteBackend<Block> for Backend<S, <<Block as Block>::Header as Header>::Hashing> where
    Block: Block,
    S: Storage<Block> + 'static,
    <Block as Block>::Hash: Ord

Loading content...

Implementors

Loading content...