2020-04-29 17:40:33 +00:00
|
|
|
// Package db defines the ability to create a new database
|
2021-06-26 19:00:33 +00:00
|
|
|
// for an Ethereum Beacon Node.
|
2018-10-05 17:14:50 +00:00
|
|
|
package db
|
|
|
|
|
2020-03-30 22:10:45 +00:00
|
|
|
import (
|
2023-03-17 18:52:56 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/db/kv"
|
2020-03-30 22:10:45 +00:00
|
|
|
)
|
2019-08-09 19:17:18 +00:00
|
|
|
|
2023-10-20 16:45:33 +00:00
|
|
|
// NewFileName uses the KVStoreDatafilePath so that if this layer of
|
2021-04-30 20:37:38 +00:00
|
|
|
// indirection between db.NewDB->kv.NewKVStore ever changes, it will be easy to remember
|
|
|
|
// to also change this filename indirection at the same time.
|
2023-10-20 16:45:33 +00:00
|
|
|
func NewFileName(dirPath string) string {
|
|
|
|
return kv.StoreDatafilePath(dirPath)
|
2021-04-30 20:37:38 +00:00
|
|
|
}
|