// CreateDB creates the chain database.
CreateDB creates the chain database.
// CreateDB creates the chain database .
func CreateDB(ctx *pod.ServiceContext, config *Config, name string) (mandb.Database, error) {
	db, err := ctx.OpenDatabase(name, config.DatabaseCache, config.DatabaseHandles, config.DatabaseTableSize)
	if err != nil {
		return nil, err
	}
	if db, ok := db.(*mandb.LDBDatabase); ok {
		db.Meter("man/db/chaindata/")
	}
	return db, nil
}
func CreateDB ( ctx * pod . ServiceContext , config * Config , name string ) ( mandb . Database , error ) { db , err := ctx . OpenDatabase ( name , config . DatabaseCache , config . DatabaseHandles , config . DatabaseTableSize ) if err != nil { return nil , err } if db , ok := db . ( * mandb . LDBDatabase ) ; ok { db . Meter ( " " ) } return db , nil }
CreateDB creates the chain database.
CreateDB creates the chain database .