mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 03:51:29 +00:00
d22552944d
* add latest changes * fix up * raul's review * pass cache tests * Update beacon-chain/blockchain/head_sync_committee_info.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * kasey's review * rename cache err * add nil checks and error path checks * gaz * fix test Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
16 lines
676 B
Go
16 lines
676 B
Go
package cache
|
|
|
|
import "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")
|
|
)
|