mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
77d3ccb9ad
* Clean up state types * rename package
33 lines
1.0 KiB
Go
33 lines
1.0 KiB
Go
//go:build fuzz
|
|
|
|
package cache
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/state"
|
|
"github.com/prysmaticlabs/prysm/v3/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 primitives.ValidatorIndex) ([]primitives.CommitteeIndex, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
// NextEpochIndexPosition -- fake.
|
|
func (s *FakeSyncCommitteeCache) NextPeriodIndexPosition(root [32]byte, valIdx primitives.ValidatorIndex) ([]primitives.CommitteeIndex, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
// UpdatePositionsInCommittee -- fake.
|
|
func (s *FakeSyncCommitteeCache) UpdatePositionsInCommittee(syncCommitteeBoundaryRoot [32]byte, state state.BeaconState) error {
|
|
return nil
|
|
}
|