Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 1.45 KB

nethermind.md

File metadata and controls

59 lines (50 loc) · 1.45 KB

Nethermind node

Requirements for Xdai network

  • memory: 16Gb
  • disk: 240Gb SSD (prune at ~180Gb)

Installation

Set the domain name to be used in the .env file. You can also set a list of allowed IP addresses there. Rename example.env to .env:

mv example.env .env

Start node (If you do not use traefik, specify the compose file with the -f docker-compose.no-proxy.yml):

docker-compose up -d

To see the sync status run: curl -X POST --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_syncing"}' -H 'Content-Type: application/json' -s https://${DOMAIN}/nm-http/

  • currentBlock - your node current height;
  • highestBlock - network height.

Upgrade

docker-compose pull
docker-compose up -d

Prepare to The Merge

Set PUBLIC_IP in .env.

Create a jwtsecret file:

openssl rand -hex 32 | tr -d "\n" | sudo tee ./secrets/jwtsecret
sudo chmod 644 ./secrets/jwtsecret

Update to latest EL / CL node software:

docker-compose down
docker-compose pull
docker-compose up -d nethermind-xdai lighthouse-xdai

Pruning

  1. Restart node with admin methods enabled:
- --JsonRpc.EnabledModules
- "Admin,Web3,Eth,Subscribe,Net,Parity"
  1. Send prune command:
curl --data '{"method":"admin_prune","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
  1. Watch pruning process:
docker logs nethermind --since 60m -f | grep 'Pruning'
  1. Disable admin methods.