From 2d0501da785b77a40286fff9ce9f4c709eb9d121 Mon Sep 17 00:00:00 2001 From: Ale Banzas Date: Fri, 23 Sep 2022 16:25:42 +0200 Subject: [PATCH] archive node configuration --- docs/node/execution-layer-validator.md | 51 ++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/docs/node/execution-layer-validator.md b/docs/node/execution-layer-validator.md index 2a953035..c417a32d 100644 --- a/docs/node/execution-layer-validator.md +++ b/docs/node/execution-layer-validator.md @@ -119,6 +119,57 @@ Container name should in this case be 'nethermind' This can take 1-3 days to sync, so in the meantime you can connect your Beacon chain node to a public RPC ::: +### Setup as Archive node + +A Gnosis archive node execute heavy historical sync verifying all the transactions and keeping all the historical state. In Nethermind, the default configuration activates the pruning functionality. + +To start a node as an archive node you will need to disable pruning in the config file when running an archive node. + +Set the following variable: + +```bash +NETHERMIND_PRUNINGCONFIG_MODE: "None" +``` + +Alternatively, if you followed the [setup instructions](#setup-instructions-linux) with Docker, edit the docker compose file with the following: + +```js title="docker-compose.yml" +version: "3.7" +services: + + nethermind: + hostname: nethermind + container_name: nethermind + image: nethermind/nethermind:latest + restart: always + stop_grace_period: 1m + networks: + net: + ipv4_address: 192.168.32.100 + ports: + - "30303:30303/tcp" + - "30303:30303/udp" + volumes: + - /home//nethermind/nethermind_db:/nethermind/nethermind_db + - /home//nethermind/keystore:/nethermind/keystore + - /home//nethermind/logs:/nethermind/logs + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + environment: + // highlight-next-line + - NETHERMIND_CONFIG=xdai_archive + logging: + driver: "local" + +networks: + net: + ipam: + driver: default + config: + - subnet: "192.168.32.0/24" +``` + +Read more about the [Nethermind Sync Modes](https://docs.nethermind.io/nethermind/ethereum-client/sync-modes) in the official documentation. ## Node Maintenance