> For the complete documentation index, see [llms.txt](https://dvt-homestaker.stakesaurus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dvt-homestaker.stakesaurus.com/monitoring-maintenance-and-updates/maintenance-and-updates/lodestar.md).

# Lodestar

## Updating Lodestar

As we are running the Lodestar services via docker containers, we will automatically be using the latest version simply by restarting the docker containers if we are using `image: chainsafe/lodestar:latest` in our `docker-compose.yml` file (which we are in this guide).

```sh
docker restart lodestar_beacon lodestar_validator
```

To check your docker compose files,&#x20;

{% tabs %}
{% tab title="beacon" %}

```
cd ~/lodestar_beacon
sudo nano docker-compose.yml
```

{% endtab %}

{% tab title="validator" %}

```
cd ~/lodestar_validator
sudo nano docker-compose.yml
```

{% endtab %}
{% endtabs %}

## Pruning Lodestar

Consensus clients take up a small amount of disk space when compared to execution clients. However, you can still free up \~200GB by pruning it if your validator node has been running for a while.

To prune consensus clients, simply delete the existing database and restart the beacon service with `checkpoint sync` enabled.&#x20;

```sh
cd ~/lodestar_beacon
docker compose down
sudo rm -r /var/lib/lodestar_beacon/*
docker compose up -d
```

Monitor logs for errors.

```sh
docker logs lodestar_beacon -f
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dvt-homestaker.stakesaurus.com/monitoring-maintenance-and-updates/maintenance-and-updates/lodestar.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
