Skip to content

Commit

Permalink
snapshot: fix osmosis prunning
Browse files Browse the repository at this point in the history
  • Loading branch information
baabeetaa committed Jul 2, 2024
1 parent 50652b9 commit 019cf90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snapshot/snapshot_cronjob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ if [[ $snapshot_prune == "cosmos-pruner" ]]; then
# $HOME/go/bin/cosmos-pruner prune $node_home/data --app=$pruned_app_name --backend=pebbledb --blocks=1000 --versions=1000 --tx_index=false --compact=true
echo "cosmos-pruner....pruned node, do nothing"
else
if [ "$pruned_app_name" = "osmosis" ]; then
$HOME/go/bin/$daemon_name prune --pruning-keep-recent 362880 --app-db-backend 'pebbledb'
fi

$HOME/go/bin/cosmos-pruner prune $node_home/data --app=$pruned_app_name --backend=$db_backend --blocks=362880 --versions=362880 --compact=true
fi
fi
Expand Down

0 comments on commit 019cf90

Please sign in to comment.