mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
dc27cd7a1e
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
16 lines
429 B
Go
16 lines
429 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/cache"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/db/kv"
|
|
)
|
|
|
|
// NewDB initializes a new DB.
|
|
func NewDB(ctx context.Context, dirPath string, stateSummaryCache *cache.StateSummaryCache) (Database, error) {
|
|
return kv.NewKVStore(ctx, dirPath, stateSummaryCache)
|
|
}
|