Function fuel_indexer::executor::retrieve_blocks_from_node
source · pub async fn retrieve_blocks_from_node(
client: &FuelClient,
block_page_size: usize,
cursor: &Option<String>,
end_block: Option<u32>,
indexer_uid: &str
) -> IndexerResult<(Vec<BlockData>, Option<String>, bool)>
Expand description
Retrieve blocks from a client node.
This was abstracted out of run_executor
in order to allow for use in the benchmarking suite
to give consistent timings.
If there is an issue fetching blocks, we return an empty cursor and an empty list of blocks, then run_executor will determine whether or not we should sleep for a bit and try again.