mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
c44a30672e
* Add interface and move slashing types to /types package * WIP restructure to match beacon chain DB * Fix build * Fix comment * Fix comments * fix comments for sure * Use wrapper function for evict * Remove unused * Update slasher/db/kv/kv.go * Update slasher/db/testing/BUILD.bazel * Update slasher/db/types/BUILD.bazel * Update slasher/db/types/types.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
11 lines
205 B
Go
11 lines
205 B
Go
package db
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/slasher/db/kv"
|
|
)
|
|
|
|
// NewDB initializes a new DB.
|
|
func NewDB(dirPath string, cfg *kv.Config) (*kv.Store, error) {
|
|
return kv.NewKVStore(dirPath, cfg)
|
|
}
|