prysm-pulse/beacon-chain/db/db.go
2020-12-16 08:56:21 -08:00

15 lines
313 B
Go

// Package db defines the ability to create a new database
// for an eth2 beacon node.
package db
import (
"context"
"github.com/prysmaticlabs/prysm/beacon-chain/db/kv"
)
// NewDB initializes a new DB.
func NewDB(ctx context.Context, dirPath string) (Database, error) {
return kv.NewKVStore(ctx, dirPath)
}