prysm-pulse/beacon-chain/db/db.go
kasey 737e0e0d3a
Use functional options for --blob-retention-epochs (#13283)
* blob retention period functional opts

* missed unstaged change

* missed other init after cleardb

* fix ineffassign

* fix dup import

* config failsafe for tests

---------

Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2023-12-06 20:20:34 +00:00

15 lines
473 B
Go

// Package db defines the ability to create a new database
// for an Ethereum Beacon Node.
package db
import (
"github.com/prysmaticlabs/prysm/v4/beacon-chain/db/kv"
)
// NewFileName uses the KVStoreDatafilePath so that if this layer of
// indirection between db.NewDB->kv.NewKVStore ever changes, it will be easy to remember
// to also change this filename indirection at the same time.
func NewFileName(dirPath string) string {
return kv.StoreDatafilePath(dirPath)
}