mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
7ad2929f0f
* Add and test proposer indices cache * Remove proposer indices usages from committee cache * Adopt the new proposer indices cache * Add comments on why genesis epoch is skipped * Fix the failing tests * Update beacon-chain/blockchain/process_block.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * Update beacon-chain/core/helpers/committee.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * Update beacon-chain/core/helpers/slot_epoch.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * Update beacon-chain/core/helpers/slot_epoch.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * Update beacon-chain/core/helpers/slot_epoch_test.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * Update beacon-chain/core/helpers/validators.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * Address additional feedbacks from @prestonvanloon * Add comments on why genesis epoch is skipped * Refactor EndSlot to use StartSlot within * Add proposer indices disabled * Add libfuzz tags 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
382 B
Go
16 lines
382 B
Go
package cache
|
|
|
|
import "errors"
|
|
|
|
// ErrNotCommittee will be returned when a cache object is not a pointer to
|
|
// a Committee struct.
|
|
var ErrNotCommittee = errors.New("object is not a committee struct")
|
|
|
|
// Committees defines the shuffled committees seed.
|
|
type Committees struct {
|
|
CommitteeCount uint64
|
|
Seed [32]byte
|
|
ShuffledIndices []uint64
|
|
SortedIndices []uint64
|
|
}
|