Skip to content

prune data for cosmos based chains which uses cosmos SDK 50

Notifications You must be signed in to change notification settings

b-harvest/cosmos-pruner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosmos-Pruner using cosmos SDK 50

Usage

# clone & build cosmprund repo
git clone https://github.com/bharvest-devops/cosmos-pruner
cd cosmos-pruner
make build

# run cosmos-pruner 
./build/cosmos-pruner prune ~/.gaiad/data
# it'll prune as everything mode.

Flags:

  • blocks: amount of blocks to keep on the node (Default 10)
  • versions: amount of app state versions to keep on the node (Default 10). If this value is set, pruner will set a pruning height that is less than the entered value with leaves 0 when divided by 10 (because cosmos-pruner uses everything strategies).
  • 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.dbm (default true)
  • compact: set to false you dont want to compact dbs after prunning (default true)

About

prune data for cosmos based chains which uses cosmos SDK 50

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.9%
  • Other 1.1%