diff --git a/app/app.go b/app/app.go index d560cf7a..d623fd83 100644 --- a/app/app.go +++ b/app/app.go @@ -24,6 +24,7 @@ import ( "github.com/cosmos/cosmos-sdk/server/api" "github.com/cosmos/cosmos-sdk/server/config" servertypes "github.com/cosmos/cosmos-sdk/server/types" + "github.com/cosmos/cosmos-sdk/store/streaming" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" @@ -318,6 +319,11 @@ func New( tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey) memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey) + if _, _, err := streaming.LoadStreamingServices(bApp, appOpts, appCodec, logger, keys); err != nil { + logger.Error("failed to load state streaming", "err", err) + os.Exit(1) + } + app := &App{ BaseApp: bApp, cdc: cdc, diff --git a/app/export.go b/app/export.go index 6cd5f2d3..0d4e874c 100644 --- a/app/export.go +++ b/app/export.go @@ -8,6 +8,7 @@ import ( tmproto "github.com/cometbft/cometbft/proto/tendermint/types" servertypes "github.com/cosmos/cosmos-sdk/server/types" + storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" "github.com/cosmos/cosmos-sdk/x/staking" @@ -166,7 +167,7 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str // Iterate through validators by power descending, reset bond heights, and // update bond intra-tx counters. store := ctx.KVStore(app.GetKey(stakingtypes.StoreKey)) - iter := sdk.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey) + iter := storetypes.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey) counter := int16(0) for ; iter.Valid(); iter.Next() { diff --git a/cmd/bcnad/cmd/root.go b/cmd/bcnad/cmd/root.go index cc31390d..ff961792 100644 --- a/cmd/bcnad/cmd/root.go +++ b/cmd/bcnad/cmd/root.go @@ -132,16 +132,6 @@ func initRootCmd( // DELETE gentxModule := app.ModuleBasics[genutiltypes.ModuleName].(genutil.AppModuleBasic) rootCmd.AddCommand( genutilcli.InitCmd(app.ModuleBasics, app.DefaultNodeHome), - // genutilcli.CollectGenTxsCmd(banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome, gentxModule.GenTxValidator), - // genutilcli.MigrateGenesisCmd(), - // genutilcli.GenTxCmd( - // app.ModuleBasics, - // encodingConfig.TxConfig, - // banktypes.GenesisBalancesIterator{}, - // app.DefaultNodeHome, - // ), - // genutilcli.ValidateGenesisCmd(app.ModuleBasics), - // AddGenesisAccountCmd(app.DefaultNodeHome), tmcli.NewCompletionCmd(rootCmd, true), debug.Cmd(), config.Cmd(),