Skip to content

Commit

Permalink
added pruning info
Browse files Browse the repository at this point in the history
  • Loading branch information
feshchenkod committed Aug 24, 2022
1 parent 0fe9c92 commit fc06fd1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions nethermind/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ services:
- "1"
- --Sync.AncientReceiptsBarrier
- "1"
- --Pruning.FullPruningThresholdMb
- "180000"
volumes:
- ./nethermind-data:/var/lib/nethermind
labels:
Expand Down
20 changes: 18 additions & 2 deletions nethermind/nethermind.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Requirements for Xdai network
* memory: 16Gb
* disk: 200Gb SSD
* 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`:
Expand All @@ -24,4 +24,20 @@ To see the sync status run:
```bash
docker-compose pull
docker-compose up -d
```
```

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

0 comments on commit fc06fd1

Please sign in to comment.