2022-03-14 20:58:13 +00:00
|
|
|
//go:build fuzz
|
2021-08-05 17:44:13 +00:00
|
|
|
|
|
|
|
package cache
|
|
|
|
|
|
|
|
import (
|
2022-08-16 12:20:13 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/state"
|
2023-01-26 14:40:12 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v3/consensus-types/primitives"
|
2021-08-05 17:44:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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.
|
2023-01-26 14:40:12 +00:00
|
|
|
func (s *FakeSyncCommitteeCache) CurrentPeriodIndexPosition(root [32]byte, valIdx primitives.ValidatorIndex) ([]primitives.CommitteeIndex, error) {
|
2021-08-05 17:44:13 +00:00
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// NextEpochIndexPosition -- fake.
|
2023-01-26 14:40:12 +00:00
|
|
|
func (s *FakeSyncCommitteeCache) NextPeriodIndexPosition(root [32]byte, valIdx primitives.ValidatorIndex) ([]primitives.CommitteeIndex, error) {
|
2021-08-05 17:44:13 +00:00
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdatePositionsInCommittee -- fake.
|
2022-05-20 22:40:03 +00:00
|
|
|
func (s *FakeSyncCommitteeCache) UpdatePositionsInCommittee(syncCommitteeBoundaryRoot [32]byte, state state.BeaconState) error {
|
2021-08-05 17:44:13 +00:00
|
|
|
return nil
|
|
|
|
}
|