Skip to main content

compact_block

Function compact_block 

Source
async fn compact_block<ReadStateService: ReadState>(
    read_state: ReadStateService,
    network: &Network,
    hash_or_height: HashOrHeight,
    nullifiers_only: bool,
) -> Result<CompactBlock, Status>
Expand description

Fetches a block and its note commitment tree sizes from the state, and converts them into a CompactBlock.