diff --git a/nethermind/docker-compose.yml b/nethermind/docker-compose.yml index 08e98ca..e3e1bfa 100644 --- a/nethermind/docker-compose.yml +++ b/nethermind/docker-compose.yml @@ -44,6 +44,8 @@ services: - "1" - --Sync.AncientReceiptsBarrier - "1" + - --Pruning.FullPruningThresholdMb + - "180000" volumes: - ./nethermind-data:/var/lib/nethermind labels: diff --git a/nethermind/nethermind.md b/nethermind/nethermind.md index f548057..5a59f5b 100644 --- a/nethermind/nethermind.md +++ b/nethermind/nethermind.md @@ -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`: @@ -24,4 +24,20 @@ To see the sync status run: ```bash docker-compose pull docker-compose up -d -``` \ No newline at end of file +``` + +## 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.