Trait vapcore_light::client::fetch::ChainDataFetcher [−][src]
Provides full chain data.
Associated Types
type Error: Debug
[src]
Error type when data unavailable.
type Body: IntoFuture<Item = Block, Error = Self::Error>
[src]
Future for fetching block body.
type Receipts: IntoFuture<Item = Vec<Receipt>, Error = Self::Error>
[src]
Future for fetching block receipts.
type Transition: IntoFuture<Item = Vec<u8>, Error = Self::Error>
[src]
Future for fetching epoch transition
Required methods
fn block_body(&self, header: &Header) -> Self::Body
[src]
Fetch a block body.
fn block_receipts(&self, header: &Header) -> Self::Receipts
[src]
Fetch block receipts.
fn epoch_transition(
&self,
_hash: H256,
_engine: Arc<dyn Engine>,
_checker: Arc<dyn StateDependentProof>
) -> Self::Transition
[src]
&self,
_hash: H256,
_engine: Arc<dyn Engine>,
_checker: Arc<dyn StateDependentProof>
) -> Self::Transition
Fetch epoch transition proof at given header.
Implementors
impl ChainDataFetcher for Unavailable
[src]
type Error = &'static str
type Body = Result<Block, &'static str>
type Receipts = Result<Vec<Receipt>, &'static str>
type Transition = Result<Vec<u8>, &'static str>
fn block_body(&self, _header: &Header) -> Self::Body
[src]
fn block_receipts(&self, _header: &Header) -> Self::Receipts
[src]
fn epoch_transition(
&self,
_hash: H256,
_engine: Arc<dyn Engine>,
_checker: Arc<dyn StateDependentProof>
) -> Self::Transition
[src]
&self,
_hash: H256,
_engine: Arc<dyn Engine>,
_checker: Arc<dyn StateDependentProof>
) -> Self::Transition