mock

package
v5.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PoolMock

type PoolMock struct {
	AggregatedAtts []*ethpb.Attestation
}

PoolMock --

func (*PoolMock) AggregateUnaggregatedAttestations

func (*PoolMock) AggregateUnaggregatedAttestations(_ context.Context) error

AggregateUnaggregatedAttestations --

func (*PoolMock) AggregateUnaggregatedAttestationsBySlotIndex

func (*PoolMock) AggregateUnaggregatedAttestationsBySlotIndex(_ context.Context, _ primitives.Slot, _ primitives.CommitteeIndex) error

AggregateUnaggregatedAttestationsBySlotIndex --

func (*PoolMock) AggregatedAttestationCount

func (*PoolMock) AggregatedAttestationCount() int

AggregatedAttestationCount --

func (*PoolMock) AggregatedAttestations

func (m *PoolMock) AggregatedAttestations() []*ethpb.Attestation

AggregatedAttestations --

func (*PoolMock) AggregatedAttestationsBySlotIndex

func (*PoolMock) AggregatedAttestationsBySlotIndex(_ context.Context, _ primitives.Slot, _ primitives.CommitteeIndex) []*ethpb.Attestation

AggregatedAttestationsBySlotIndex --

func (*PoolMock) BlockAttestations

func (*PoolMock) BlockAttestations() []*ethpb.Attestation

BlockAttestations --

func (*PoolMock) DeleteAggregatedAttestation

func (*PoolMock) DeleteAggregatedAttestation(_ *ethpb.Attestation) error

DeleteAggregatedAttestation --

func (*PoolMock) DeleteBlockAttestation

func (*PoolMock) DeleteBlockAttestation(_ *ethpb.Attestation) error

DeleteBlockAttestation --

func (*PoolMock) DeleteForkchoiceAttestation

func (*PoolMock) DeleteForkchoiceAttestation(_ *ethpb.Attestation) error

DeleteForkchoiceAttestation --

func (*PoolMock) DeleteSeenUnaggregatedAttestations

func (*PoolMock) DeleteSeenUnaggregatedAttestations() (int, error)

DeleteSeenUnaggregatedAttestations --

func (*PoolMock) DeleteUnaggregatedAttestation

func (*PoolMock) DeleteUnaggregatedAttestation(_ *ethpb.Attestation) error

DeleteUnaggregatedAttestation --

func (*PoolMock) ForkchoiceAttestationCount

func (*PoolMock) ForkchoiceAttestationCount() int

ForkchoiceAttestationCount --

func (*PoolMock) ForkchoiceAttestations

func (*PoolMock) ForkchoiceAttestations() []*ethpb.Attestation

ForkchoiceAttestations --

func (*PoolMock) HasAggregatedAttestation

func (*PoolMock) HasAggregatedAttestation(_ *ethpb.Attestation) (bool, error)

HasAggregatedAttestation --

func (*PoolMock) SaveAggregatedAttestation

func (*PoolMock) SaveAggregatedAttestation(_ *ethpb.Attestation) error

SaveAggregatedAttestation --

func (*PoolMock) SaveAggregatedAttestations

func (m *PoolMock) SaveAggregatedAttestations(atts []*ethpb.Attestation) error

SaveAggregatedAttestations --

func (*PoolMock) SaveBlockAttestation

func (*PoolMock) SaveBlockAttestation(_ *ethpb.Attestation) error

SaveBlockAttestation --

func (*PoolMock) SaveBlockAttestations

func (*PoolMock) SaveBlockAttestations(_ []*ethpb.Attestation) error

SaveBlockAttestations --

func (*PoolMock) SaveForkchoiceAttestation

func (*PoolMock) SaveForkchoiceAttestation(_ *ethpb.Attestation) error

SaveForkchoiceAttestation --

func (*PoolMock) SaveForkchoiceAttestations

func (*PoolMock) SaveForkchoiceAttestations(_ []*ethpb.Attestation) error

SaveForkchoiceAttestations --

func (*PoolMock) SaveUnaggregatedAttestation

func (*PoolMock) SaveUnaggregatedAttestation(_ *ethpb.Attestation) error

SaveUnaggregatedAttestation --

func (*PoolMock) SaveUnaggregatedAttestations

func (*PoolMock) SaveUnaggregatedAttestations(_ []*ethpb.Attestation) error

SaveUnaggregatedAttestations --

func (*PoolMock) UnaggregatedAttestationCount

func (*PoolMock) UnaggregatedAttestationCount() int

UnaggregatedAttestationCount --

func (*PoolMock) UnaggregatedAttestations

func (*PoolMock) UnaggregatedAttestations() ([]*ethpb.Attestation, error)

UnaggregatedAttestations --

func (*PoolMock) UnaggregatedAttestationsBySlotIndex

func (*PoolMock) UnaggregatedAttestationsBySlotIndex(_ context.Context, _ primitives.Slot, _ primitives.CommitteeIndex) []*ethpb.Attestation

UnaggregatedAttestationsBySlotIndex --

Jump to

Keyboard shortcuts

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