solana_accounts_db::accounts_partition

Function partition_from_pubkey

Source
pub fn partition_from_pubkey(
    pubkey: &Pubkey,
    partition_count: u64,
) -> PartitionIndex
Expand description

This is the inverse of pubkey_range_from_partition. return the lowest end_index which would contain this pubkey