mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-29 08:03:48 +00:00
* chore: update `txarrivalwait` flag description * chore: update docs * chore: update other flags * fix: doc generation is now deterministic * chore: remove debug * feat: sort options in `bor server --help` * fix: prealloc array * fix: lint issues * internal/cli: remove nolint --------- Co-authored-by: marcello33 <marcelloardizzone@hotmail.it> Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
21 lines
No EOL
921 B
Markdown
21 lines
No EOL
921 B
Markdown
# Prune state
|
|
|
|
The ```bor snapshot prune-state``` command will prune historical state data with the help of the state snapshot. All trie nodes and contract codes that do not belong to the specified version state will be deleted from the database. After pruning, only two version states are available: genesis and the specific one.
|
|
|
|
## Options
|
|
|
|
- ```bloomfilter.size```: Size of the bloom filter (default: 2048)
|
|
|
|
- ```datadir```: Path of the data directory to store information
|
|
|
|
- ```datadir.ancient```: Path of the ancient data directory to store information
|
|
|
|
- ```keystore```: Path of the data directory to store keys
|
|
|
|
### Cache Options
|
|
|
|
- ```cache```: Megabytes of memory allocated to internal caching (default: 1024)
|
|
|
|
- ```cache.trie```: Percentage of cache memory allowance to use for trie caching (default: 25)
|
|
|
|
- ```cache.trie.journal```: Path of the trie journal directory to store information (default: triecache) |