mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
d077483577
* v3 import renamings * tidy * fmt * rev * Update beacon-chain/core/epoch/precompute/reward_penalty_test.go * Update beacon-chain/core/helpers/validators_test.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/iface/BUILD.bazel * Update beacon-chain/db/kv/kv.go * Update beacon-chain/db/kv/state.go * Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go * Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go * Update beacon-chain/sync/initial-sync/service.go * fix deps * fix bad replacements * fix bad replacements * change back * gohashtree version * fix deps Co-authored-by: Nishant Das <nishdas93@gmail.com> Co-authored-by: Potuz <potuz@prysmaticlabs.com>
22 lines
1.1 KiB
Go
22 lines
1.1 KiB
Go
package db
|
|
|
|
import "github.com/prysmaticlabs/prysm/v3/beacon-chain/db/kv"
|
|
|
|
// ErrNotFound can be used to determine if an error from a method in the database package
|
|
// represents a "not found" error. These often require different handling than a low-level
|
|
// i/o error. This variable copies the value in the kv package to the same scope as the Database interfaces,
|
|
// so that it is available to code paths that do not interact directly with the kv package.
|
|
var ErrNotFound = kv.ErrNotFound
|
|
|
|
// ErrNotFoundState wraps ErrNotFound for an error specific to a state not being found in the database.
|
|
var ErrNotFoundState = kv.ErrNotFoundState
|
|
|
|
// ErrNotFoundOriginBlockRoot wraps ErrNotFound for an error specific to the origin block root.
|
|
var ErrNotFoundOriginBlockRoot = kv.ErrNotFoundOriginBlockRoot
|
|
|
|
// ErrNotFoundBackfillBlockRoot wraps ErrNotFound for an error specific to the backfill block root.
|
|
var ErrNotFoundBackfillBlockRoot = kv.ErrNotFoundBackfillBlockRoot
|
|
|
|
// ErrNotFoundGenesisBlockRoot means no genesis block root was found, indicating the db was not initialized with genesis
|
|
var ErrNotFoundGenesisBlockRoot = kv.ErrNotFoundGenesisBlockRoot
|