github.com/prysmaticlabs/prysm@v1.4.4/beacon-chain/cache/proposer_indices_type.go (about)

     1  package cache
     2  
     3  import (
     4  	"errors"
     5  
     6  	types "github.com/prysmaticlabs/eth2-types"
     7  )
     8  
     9  // ErrNotProposerIndices will be returned when a cache object is not a pointer to
    10  // a ProposerIndices struct.
    11  var ErrNotProposerIndices = errors.New("object is not a proposer indices struct")
    12  
    13  // ProposerIndices defines the cached struct for proposer indices.
    14  type ProposerIndices struct {
    15  	BlockRoot       [32]byte
    16  	ProposerIndices []types.ValidatorIndex
    17  }