solana_program::address_lookup_table::state

Function estimate_last_valid_slot

Source
pub fn estimate_last_valid_slot(deactivation_slot: Slot) -> Slot
Expand description

The lookup table may be in a deactivating state until the `deactivation_slot`` is no longer “recent”. This function returns a conservative estimate for the last block that the table may be used for lookups. This estimate may be incorrect due to skipped blocks, however, if the current slot is lower than the returned value, the table is guaranteed to still be in the deactivating state.