async def _load_chain_from_store(self) -> None:
    '\n        Initializes the state of the Blockchain class from the database.\n        '
    (height_to_hash, sub_epoch_summaries) = (await self.block_store.get_peak_height_dicts())
    self.__height_to_hash = height_to_hash
    self.__sub_epoch_summaries = sub_epoch_summaries
    self.__block_records = {}
    self.__heights_in_cache = {}
    (block_records, peak) = (await self.block_store.get_block_records_close_to_peak(self.constants.BLOCKS_CACHE_SIZE))
    for block in block_records.values():
        self.add_block_record(block)
    if (len(block_records) == 0):
        assert (peak is None)
        self._peak_height = None
        return None
    assert (peak is not None)
    self._peak_height = self.block_record(peak).height
    assert (len(self.__height_to_hash) == (self._peak_height + 1))
Initializes the state of the Blockchain class from the database.
async def _load_chain_from_store(self) -> None:
    '\n        \n        '
    (height_to_hash, sub_epoch_summaries) = (await self.block_store.get_peak_height_dicts())
    self.__height_to_hash = height_to_hash
    self.__sub_epoch_summaries = sub_epoch_summaries
    self.__block_records = {}
    self.__heights_in_cache = {}
    (block_records, peak) = (await self.block_store.get_block_records_close_to_peak(self.constants.BLOCKS_CACHE_SIZE))
    for block in block_records.values():
        self.add_block_record(block)
    if (len(block_records) == 0):
        assert (peak is None)
        self._peak_height = None
        return None
    assert (peak is not None)
    self._peak_height = self.block_record(peak).height
    assert (len(self.__height_to_hash) == (self._peak_height + 1))