mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 03:51:29 +00:00
092e9e1d19
* Clean up various warnings * Update beacon-chain/rpc/prysm/v1alpha1/debug/state_test.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * Fix redundant casting genState Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
24 lines
1.2 KiB
Go
24 lines
1.2 KiB
Go
package kv
|
|
|
|
import "github.com/pkg/errors"
|
|
|
|
// ErrDeleteJustifiedAndFinalized is raised when we attempt to delete a finalized block/state
|
|
var ErrDeleteJustifiedAndFinalized = 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")
|
|
|
|
// ErrNotFoundBackfillBlockRoot 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")
|