solana_accounts_db

Module accounts_partition

Source
Expand description

Partitioning of the accounts into chunks for rent collection

Structs§

RentPayingAccountsByPartition
populated at startup with the accounts that were found that are rent paying. These are the ‘possible’ rent paying accounts. This set can never grow during runtime since it is not possible to create rent paying accounts now. It can shrink during execution if a rent paying account is dropped to lamports=0 or is topped off. The next time the validator restarts, it will remove the account from this list.

Functions§

get_partition_end_indexes
return all end partition indexes for the given partition partition could be (0, 1, N). In this case we only return [1] the single ‘end_index’ that covers this partition. partition could be (0, 2, N). In this case, we return [1, 2], which are all the ‘end_index’ values contained in that range. (0, 0, N) returns [0] as a special case. There is a relationship between
get_partition_from_slot_indexes
get_partitions
partition_from_pubkey
This is the inverse of pubkey_range_from_partition. return the lowest end_index which would contain this pubkey
prefix_from_pubkey
pubkey_range_from_partition
rent_multi_epoch_collection_cycle_params
rent_single_epoch_collection_cycle_params

Type Aliases§

Partition
PartitionIndex