enid prune

enid prune

Prunes the application's historical state by keeping recent heights and deleting older ones.
Pruning options are provided via the `--pruning` flag or `--pruning-keep-recent`.

For the `--pruning` flag, the options are as follows:

- default: Keeps the most recent 362880 states
- nothing: Saves all historical states; nothing will be deleted (i.e., archive node)
- everything: Keeps only the most recent 2 states
- custom: Allows manual specification of pruning options via `pruning-keep-recent`.

In addition to pruning options, the database home directory and backend type should be specified using the `--home` and `--app-db-backend` flags. Valid app-db-backend types include `goleveldb`, `cleveldb`, `rocksdb`, `boltdb`, and `badgerdb`.

Usage:
  enid prune [flags]

Example:
prune --home './' --app-db-backend 'goleveldb' --pruning 'custom' --pruning-keep-recent 100 --pruning-keep-every 10 --pruning-interval 10

Flags:
      --app-db-backend string      Database type for the application and snapshot database
      --chain-id string            Chain ID
  -h, --help                       Help information for prune
      --home string                Database home directory
      --pruning string             Pruning strategy (default|nothing|everything|custom) (default "default")
      --pruning-interval uint      Height interval to delete pruned heights on disk (ignored if pruning is not 'custom'),
                                    This option is retained for compatibility with full pruning options (default 10)
      --pruning-keep-every uint    Offset heights retained on disk after 'keep-every' (ignored if pruning is not 'custom'),
                                    This option is retained for compatibility with full pruning options
      --pruning-keep-recent uint   Number of recent heights to keep on disk (ignored if pruning is not 'custom')

Global Flags:
      --log_format string   Log format (json|plain)
      --log_level string    Log level (trace|debug|info|warn|error|fatal|panic)
      --trace               Print the full stack trace on error

Last updated