prysm-pulse/beacon-chain/db/db.go

15 lines
340 B
Go
Raw Normal View History

// Package db defines the ability to create a new database
// for an eth2 beacon node.
2018-10-05 17:14:50 +00:00
package db
import (
"context"
"github.com/prysmaticlabs/prysm/beacon-chain/db/kv"
)
// NewDB initializes a new DB.
func NewDB(ctx context.Context, dirPath string, config *kv.Config) (Database, error) {
return kv.NewKVStore(ctx, dirPath, config)
}