mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 20:37:17 +00:00
83416f31a5
* adding changes to blocks * trying out expiration * adding implementation, have WIP for tests * adding unit tests for cache * fixing bazel complaints * fix linting * adding safe check for unint type * changing approach to safety check * adding cache to bazel to test fixing build * reverting bazel change and adding flag to usage * implementing interface on mock to fix build error * fixing unit tests * fixing unit test * fixing unit tests * fixing linting * fixing more unit tests * fixing produce blinded block tests * Update beacon-chain/cache/registration.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * resolving review comments * fixing cache * Update beacon-chain/cache/registration.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * Update beacon-chain/cache/registration.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * fixing time logic * adding context to trace * fix bazel lint * fixing context dependency * fix linting * Update cmd/beacon-chain/flags/base.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * addressing review comments * fixing deepsource issues * improving the default settings * fixing bazel * removing irrelevant unit test * updating name --------- Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
18 lines
851 B
Go
18 lines
851 B
Go
package cache
|
|
|
|
import "github.com/pkg/errors"
|
|
|
|
var (
|
|
// ErrNilValueProvided for when we try to put a nil value in a cache.
|
|
ErrNilValueProvided = errors.New("nil value provided on Put()")
|
|
// ErrIncorrectType for when the state is of the incorrect type.
|
|
ErrIncorrectType = errors.New("incorrect state type provided")
|
|
// ErrNotFound for cache fetches that return a nil value.
|
|
ErrNotFound = errors.New("not found in cache")
|
|
// ErrNonExistingSyncCommitteeKey when sync committee key (root) does not exist in cache.
|
|
ErrNonExistingSyncCommitteeKey = errors.New("does not exist sync committee key")
|
|
errNotSyncCommitteeIndexPosition = errors.New("not syncCommitteeIndexPosition struct")
|
|
// ErrNotFoundRegistration when validator registration does not exist in cache.
|
|
ErrNotFoundRegistration = errors.Wrap(ErrNotFound, "no validator registered")
|
|
)
|