mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
64c02c405b
To increase DRY and enable DRY in tests and other users of the Beacon Chain state package, an error that was duplicated unnecessarily in each version of the state is moved to the root Beacon Chain state package.
10 lines
248 B
Go
10 lines
248 B
Go
package state
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrNilValidatorsInState returns when accessing validators in the state while the state has a
|
|
// nil slice for the validators field.
|
|
ErrNilValidatorsInState = errors.New("state has nil validator slice")
|
|
)
|