needs_prev_shard_check

Function needs_prev_shard_check 

Source
pub fn needs_prev_shard_check(
    rank: u64,
    found_block: Option<u64>,
    block_number: u64,
) -> bool
Available on crate feature provider only.
Expand description

Checks if a previous shard lookup is needed to determine if we’re before the first write.

Returns true when rank == 0 (first entry in shard) and the found block doesn’t match the target block number. In this case, we need to check if there’s a previous shard.