2020-04-29 12:40:33 -05:00
|
|
|
// Package db defines the ability to create a new database
|
|
|
|
// for an eth2 beacon node.
|
2018-10-06 02:14:50 +09:00
|
|
|
package db
|
|
|
|
|
2020-03-30 15:10:45 -07:00
|
|
|
import (
|
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/cache"
|
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/db/kv"
|
|
|
|
)
|
2019-08-09 14:17:18 -05:00
|
|
|
|
2019-08-14 11:48:28 -07:00
|
|
|
// NewDB initializes a new DB.
|
2020-03-30 15:10:45 -07:00
|
|
|
func NewDB(dirPath string, stateSummaryCache *cache.StateSummaryCache) (Database, error) {
|
|
|
|
return kv.NewKVStore(dirPath, stateSummaryCache)
|
2019-08-14 11:48:28 -07:00
|
|
|
}
|