mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 03:31:20 +00:00
7920528ede
* enable checkpoint sync in beacon node * lint fix * rm unused error * addressing PR feedback from Radek * consistent slice -> fixed conversion Co-authored-by: kasey <kasey@users.noreply.github.com>
24 lines
1.1 KiB
Go
24 lines
1.1 KiB
Go
package kv
|
|
|
|
import "github.com/pkg/errors"
|
|
|
|
// errDeleteFinalized is raised when we attempt to delete a finalized block/state
|
|
var errDeleteFinalized = errors.New("cannot delete finalized block or state")
|
|
|
|
// ErrNotFound can be used directly, or as a wrapped DBError, whenever a db method needs to
|
|
// indicate that a value couldn't be found.
|
|
var ErrNotFound = errors.New("not found in db")
|
|
var ErrNotFoundState = errors.Wrap(ErrNotFound, "state not found")
|
|
|
|
// ErrNotFoundOriginBlockRoot is an error specifically for the origin block root getter
|
|
var ErrNotFoundOriginBlockRoot = errors.Wrap(ErrNotFound, "OriginBlockRoot")
|
|
|
|
// ErrNotFoundGenesisBlockRoot means no genesis block root was found, indicating the db was not initialized with genesis
|
|
var ErrNotFoundGenesisBlockRoot = errors.Wrap(ErrNotFound, "OriginGenesisRoot")
|
|
|
|
// ErrNotFoundOriginBlockRoot is an error specifically for the origin block root getter
|
|
var ErrNotFoundBackfillBlockRoot = errors.Wrap(ErrNotFound, "BackfillBlockRoot")
|
|
|
|
// ErrNotFoundFeeRecipient is a not found error specifically for the fee recipient getter
|
|
var ErrNotFoundFeeRecipient = errors.Wrap(ErrNotFound, "fee recipient")
|