Skip to content

0xFearless-1/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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.7%
  • Other 1.3%