pub fn get_latest_block_slot_at_timestamp(
thread_count: u8,
t0: MassaTime,
genesis_timestamp: MassaTime,
timestamp: MassaTime,
) -> Result<Option<Slot>, ModelsError>Expand description
Returns the thread and block period index of the latest block slot at a given timestamp (inclusive), if any happened
§Arguments
thread_count: number of threads.t0: time in milliseconds between two periods in the same thread.genesis_timestamp: when the blockclique first started, in milliseconds.timestamp: target timestamp in milliseconds.