mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-03 23:57:26 +00:00 
			
		
		
		
	update cmd package
This commit is contained in:
		
							parent
							
								
									5acc23e6e5
								
							
						
					
					
						commit
						5d6141b4f2
					
				@ -9,9 +9,9 @@ import (
 | 
			
		||||
 | 
			
		||||
	abci "github.com/tendermint/tendermint/abci/types"
 | 
			
		||||
	"github.com/tendermint/tendermint/libs/cli"
 | 
			
		||||
	dbm "github.com/tendermint/tendermint/libs/db"
 | 
			
		||||
	"github.com/tendermint/tendermint/libs/log"
 | 
			
		||||
	tmtypes "github.com/tendermint/tendermint/types"
 | 
			
		||||
	dbm "github.com/tendermint/tm-db"
 | 
			
		||||
 | 
			
		||||
	"github.com/cosmos/cosmos-sdk/baseapp"
 | 
			
		||||
	"github.com/cosmos/cosmos-sdk/client"
 | 
			
		||||
@ -74,11 +74,19 @@ func main() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func newApp(logger log.Logger, db dbm.DB, traceStore io.Writer) abci.Application {
 | 
			
		||||
	var cache sdk.MultiStorePersistentCache
 | 
			
		||||
 | 
			
		||||
	if viper.GetBool(server.FlagInterBlockCache) {
 | 
			
		||||
		cache = store.NewCommitKVStoreCacheManager()
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return app.NewApp(
 | 
			
		||||
		logger, db, traceStore, true, invCheckPeriod,
 | 
			
		||||
		baseapp.SetPruning(store.NewPruningOptionsFromString(viper.GetString("pruning"))),
 | 
			
		||||
		baseapp.SetMinGasPrices(viper.GetString(server.FlagMinGasPrices)),
 | 
			
		||||
		baseapp.SetHaltHeight(uint64(viper.GetInt(server.FlagHaltHeight))),
 | 
			
		||||
		baseapp.SetHaltHeight(viper.GetUint64(server.FlagHaltHeight)),
 | 
			
		||||
		baseapp.SetHaltTime(viper.GetUint64(server.FlagHaltTime)),
 | 
			
		||||
		baseapp.SetInterBlockCache(cache),
 | 
			
		||||
	)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user