Skip to content

Commit

Permalink
Problem: manual prune cmd is not included (backport crypto-org-chain#781
Browse files Browse the repository at this point in the history
)

Solution:
- add to root cmd
  • Loading branch information
yihuang committed Dec 2, 2022
1 parent 68f98e4 commit 74daf40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## UNRELEASED

### Improvements
- [#781](https://github.com/crypto-org-chain/cronos/pull/781) Add prune command.

*Nov 22, 2022*

## v1.0.0
Expand Down
4 changes: 3 additions & 1 deletion cmd/cronosd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/config"
"github.com/cosmos/cosmos-sdk/client/debug"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/pruning"
"github.com/cosmos/cosmos-sdk/client/rpc"
"github.com/cosmos/cosmos-sdk/server"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
Expand Down Expand Up @@ -113,6 +114,7 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) {
cfg := sdk.GetConfig()
cfg.Seal()

a := appCreator{encodingConfig}
rootCmd.AddCommand(
ethermintclient.ValidateChainID(
WrapInitCmd(app.DefaultNodeHome),
Expand All @@ -126,10 +128,10 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) {
ethermintclient.NewTestnetCmd(app.ModuleBasics, banktypes.GenesisBalancesIterator{}),
debug.Cmd(),
config.Cmd(),
pruning.PruningCmd(a.newApp),
// this line is used by starport scaffolding # stargate/root/commands
)

a := appCreator{encodingConfig}
ethermintserver.AddCommands(rootCmd, app.DefaultNodeHome, a.newApp, a.appExport, addModuleInitFlags)
experimental.AddCommands(rootCmd)

Expand Down

0 comments on commit 74daf40

Please sign in to comment.