mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 09:14:28 +00:00
1df173e701
* backfill service * fix bug where origin state is never unlocked * support mvslice states * use renamed interface * refactor db code to skip block cache for backfill * lint * add test for verifier.verify * enable service in service init test * cancellation cleanup * adding nil checks to configset juggling * assume blocks are available by default As long as we're sure the AvailableBlocker is initialized correctly during node startup, defaulting to assuming we aren't in a checkpoint sync simplifies things greatly for tests. * block saving path refactor and bugfix * fix fillback test * fix BackfillStatus init tests --------- Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
29 lines
1.5 KiB
Go
29 lines
1.5 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")
|
|
|
|
var errEmptyBlockSlice = errors.New("[]blocks.ROBlock is empty")
|
|
var errIncorrectBlockParent = errors.New("unexpected missing or forked blocks in a []ROBlock")
|
|
var errFinalizedChildNotFound = errors.New("unable to find finalized root descending from backfill batch")
|
|
var errNotConnectedToFinalized = errors.New("unable to finalize backfill blocks, finalized parent_root does not match")
|