Function solana_ledger::blockstore::find_slot_meta_in_cached_state
source · fn find_slot_meta_in_cached_state<'a>(
working_set: &'a HashMap<u64, SlotMetaWorkingSetEntry>,
chained_slots: &'a HashMap<u64, Rc<RefCell<SlotMeta>>>,
slot: Slot
) -> Option<Rc<RefCell<SlotMeta>>>
Expand description
Returns the SlotMeta
of the specified slot
from the two cached states:
working_set
and chained_slots
. If both contain the SlotMeta
, then
the latest one from the working_set
will be returned.