Skip to content

notional-labs/cosmprund

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosmos-Pruner

This is a fork of cosmprund with some improvements:

  • support pebbledb
  • prune all stores of app state
  • support blockstore prunning
  • support tx_index prunning

Usage

# clone & build cosmprund repo
git clone https://github.com/notional-labs/cosmprund
cd cosmprund
make build

# run cosmprund 
./build/cosmprund prune ~/.gaiad/data --app=cosmoshub --backend=pebbledb --blocks=362880 --versions=362880 --compact=true

Flags:

  • data-dir: path to data directory if not default
  • blocks: amount of blocks to keep on the node (Default 10)
  • versions: amount of app state versions to keep on the node (Default 10)
  • app: deprecated! does not use for anything exccep some special chains.
  • cosmos-sdk: If pruning app state (Default true)
  • tendermint: If pruning tendermint data including blockstore and state. (Default true)
  • tx_index: set to false you dont want to prune tx_index.db (default true)
  • compact: set to false you dont want to compact dbs after prunning (default true)

About

prune data for tendermint/cosmos based chains

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages