Skip to content

Commit

Permalink
fix app.go
Browse files Browse the repository at this point in the history
  • Loading branch information
atheeshp committed Feb 12, 2024
1 parent faa75d8 commit 70756dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
1 change: 0 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ func init() {
// NewSimApp returns a reference to an initialized SimApp.
func New(
logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
// skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint,
appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp),
) *App {
encodingConfig := MakeTestEncodingConfig()
Expand Down
30 changes: 0 additions & 30 deletions cmd/cheqd-noded/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,36 +177,6 @@ type appCreator struct {

// newApp is an AppCreator
func (a appCreator) newApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts servertypes.AppOptions) servertypes.Application {
// var cache sdk.MultiStorePersistentCache

// if cast.ToBool(appOpts.Get(server.FlagInterBlockCache)) {
// cache = store.NewCommitKVStoreCacheManager()
// }

// skipUpgradeHeights := make(map[int64]bool)
// for _, h := range cast.ToIntSlice(appOpts.Get(server.FlagUnsafeSkipUpgrades)) {
// skipUpgradeHeights[int64(h)] = true
// }

// pruningOpts, err := server.GetPruningOptionsFromFlags(appOpts)
// if err != nil {
// panic(err)
// }

// snapshotDir := filepath.Join(cast.ToString(appOpts.Get(flags.FlagHome)), "data", "snapshots")
// snapshotDB, err := dbm.NewDB("metadata", server.GetAppDBBackend(appOpts), snapshotDir)
// if err != nil {
// panic(err)
// }
// snapshotStore, err := snapshots.NewStore(snapshotDB, snapshotDir)
// if err != nil {
// panic(err)
// }
// snapshotInterval := cast.ToUint64(appOpts.Get(server.FlagStateSyncSnapshotInterval))
// snapshotKeepRecent := cast.ToUint32(appOpts.Get(server.FlagStateSyncSnapshotKeepRecent))
// snapshotOptions := snapshotstypes.NewSnapshotOptions(snapshotInterval, snapshotKeepRecent)
// _, _, _, _ = snapshotStore, pruningOpts, snapshotOptions, cache

return app.New(
logger, db, traceStore, true,
appOpts,
Expand Down

0 comments on commit 70756dc

Please sign in to comment.