mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47: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>
18 lines
821 B
Go
18 lines
821 B
Go
package db
|
|
|
|
import "github.com/prysmaticlabs/prysm/slasher/db/iface"
|
|
|
|
// ReadOnlyDatabase exposes the Slasher's DB read only functions for all slasher related buckets.
|
|
type ReadOnlyDatabase = iface.ReadOnlyDatabase
|
|
|
|
// WriteAccessDatabase exposes the Slasher's DB writing functions for all slasher related buckets.
|
|
type WriteAccessDatabase = iface.WriteAccessDatabase
|
|
|
|
// FullAccessDatabase exposes Slasher's DB write and read functions for all slasher related buckets.
|
|
type FullAccessDatabase = iface.FullAccessDatabase
|
|
|
|
// Database defines the necessary methods for the Slasher's DB which may be implemented by any
|
|
// key-value or relational database in practice. This is the full database interface which should
|
|
// not be used often. Prefer a more restrictive interface in this package.
|
|
type Database = iface.Database
|