mock

package
v1.9.0-alpha.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a mock sync committee contributor.

func New

func New() *Service

New creates a new mock sync committee contributor.

func (*Service) GetDataUsedForSlot added in v1.9.0

func (s *Service) GetDataUsedForSlot(slot phase0.Slot) (synccommitteemessenger.SlotData, bool)

GetDataUsedForSlot is a mock.

func (*Service) Message

func (*Service) Message(_ context.Context, _ interface{}) ([]*altair.SyncCommitteeMessage, error)

Message generates and broadcasts sync committee messages for a slot. It returns a list of messages made.

func (*Service) Prepare

func (*Service) Prepare(_ context.Context, _ interface{}) error

Prepare prepares in advance of a sync committee message.

func (*Service) PrimeLastReported added in v1.9.0

func (s *Service) PrimeLastReported(slot phase0.Slot, lastReported synccommitteemessenger.SlotData)

PrimeLastReported is used to prime the mock.

func (*Service) RemoveHistoricDataUsedForSlotVerification added in v1.9.0

func (*Service) RemoveHistoricDataUsedForSlotVerification(_ phase0.Slot)

RemoveHistoricDataUsedForSlotVerification is a mock.

func (*Service) ResetMock added in v1.9.0

func (s *Service) ResetMock()

ResetMock is used to reset the mock.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL