Expand description
Partitioning of the accounts into chunks for rent collection
Structs§
- Rent
Paying Accounts ByPartition - 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