Function zaino_fetch::chain::block::get_block_from_node

source ยท
pub async fn get_block_from_node(
    zebra_uri: &Uri,
    height: &u32,
) -> Result<CompactBlock, BlockCacheError>
Expand description

Returns a compact block.

Retrieves a full block from zebrad/zcashd using 2 get_block calls. This is because a get_block verbose = 1 call is require to fetch txids. TODO: Save retrieved CompactBlock to the BlockCache. TODO: Return more representative error type.