Pruning of State
There are four strategies for pruning state. These strategies apply only to state and do not apply to block storage. To set pruning, adjust the
pruningparameter in the
~/.bitsongd/config/app.tomlfile. The following pruning state settings are available:
everything: Prune all saved states other than the current state.
nothing: Save all states and delete nothing.
default: Save the last 100 states and the state of every 10,000th block.
custom: Specify pruning settings with the
By default, every node is in
defaultmode which is the recommended setting for most environments. If you would like to change your nodes pruning strategy then you must do so when the node is initialized. Passing a flag when starting
bitsongdwill always override settings in the
app.tomlfile, if you would like to change your node to the
everythingmode then you can pass the
---pruning everythingflag when you call
Note: When you are pruning state you will not be able to query the heights that are not in your store.