mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
84916672c6
* replace eth2 types * replace protos * regen proto * replace * gaz * deps * amend * regen proto * mod * gaz * gaz * ensure build * ssz * add dep * no more eth2 types * no more eth2 * remg * all builds * buidl * tidy * clean * fmt * val serv * gaz Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
34 lines
1.0 KiB
Go
34 lines
1.0 KiB
Go
//go:build fuzz
|
|
// +build fuzz
|
|
|
|
package cache
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/state"
|
|
types "github.com/prysmaticlabs/prysm/consensus-types/primitives"
|
|
)
|
|
|
|
// FakeSyncCommitteeCache is a fake `SyncCommitteeCache` to satisfy fuzzing.
|
|
type FakeSyncCommitteeCache struct {
|
|
}
|
|
|
|
// NewSyncCommittee initializes and returns a new SyncCommitteeCache.
|
|
func NewSyncCommittee() *FakeSyncCommitteeCache {
|
|
return &FakeSyncCommitteeCache{}
|
|
}
|
|
|
|
// CurrentEpochIndexPosition -- fake.
|
|
func (s *FakeSyncCommitteeCache) CurrentPeriodIndexPosition(root [32]byte, valIdx types.ValidatorIndex) ([]types.CommitteeIndex, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
// NextEpochIndexPosition -- fake.
|
|
func (s *FakeSyncCommitteeCache) NextPeriodIndexPosition(root [32]byte, valIdx types.ValidatorIndex) ([]types.CommitteeIndex, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
// UpdatePositionsInCommittee -- fake.
|
|
func (s *FakeSyncCommitteeCache) UpdatePositionsInCommittee(syncCommitteeBoundaryRoot [32]byte, state state.BeaconStateAltair) error {
|
|
return nil
|
|
}
|