diff --git a/CHANGELOG.md b/CHANGELOG.md index d3253adbc9..601d0ccd54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ - [cronos#702](https://github.com/crypto-org-chain/cronos/pull/702) Integrate the file state streamer. - [cronos#714](https://github.com/crypto-org-chain/cronos/pull/714) Add option `iavl-disable-fastnode` to disable iavl fastnode indexing migration. - [cronos#729](https://github.com/crypto-org-chain/cronos/pull/729) Update dependencies to recent versions. +- [cronos#781](https://github.com/crypto-org-chain/cronos/pull/781) Add prune command. *September 13, 2022* diff --git a/cmd/cronosd/cmd/root.go b/cmd/cronosd/cmd/root.go index 39f88d7486..3349481928 100644 --- a/cmd/cronosd/cmd/root.go +++ b/cmd/cronosd/cmd/root.go @@ -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" @@ -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), @@ -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)