def METHOD_NAME(self, msg: GetBlockHeaders):
    blocks = []
    for h in msg.hashes:
        blocks.append(self.block_map[h].block_header)
    resp = BlockHeaders(reqid=msg.reqid, headers=blocks)
    self.send_protocol_msg(resp)