Skip to main content

block_range_stream

Function block_range_stream 

Source
fn block_range_stream<ReadStateService: ReadState>(
    read_state: ReadStateService,
    network: Network,
    block_range: BlockRange,
    nullifiers_only: bool,
) -> Result<Pin<Box<dyn Stream<Item = Result<CompactBlock, Status>> + Send>>, Status>
Expand description

Returns a stream of compact blocks for the given block range.

The range is inclusive, and the blocks are streamed in the order given by the range: ascending if start <= end, and descending otherwise.