def add_block_record(self, block_record: BlockRecord):
    '\n        Adds a block record to the cache.\n        '
    self.__block_records[block_record.header_hash] = block_record
    if (block_record.height not in self.__heights_in_cache.keys()):
        self.__heights_in_cache[block_record.height] = set()
    self.__heights_in_cache[block_record.height].add(block_record.header_hash)
Adds a block record to the cache.
def add_block_record(self, block_record: BlockRecord):
    '\n        \n        '
    self.__block_records[block_record.header_hash] = block_record
    if (block_record.height not in self.__heights_in_cache.keys()):
        self.__heights_in_cache[block_record.height] = set()
    self.__heights_in_cache[block_record.height].add(block_record.header_hash)