committee_subscription

package
v1.9.7-0...-4dbe343 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIgnore                   = fmt.Errorf("ignore")
	ErrCommitteeIndexOutOfRange = fmt.Errorf("committee index out of range")
	ErrWrongSubnet              = fmt.Errorf("attestation is for the wrong subnet")
	ErrNotInPropagationRange    = fmt.Errorf("attestation is not in propagation range. %w", ErrIgnore)
	ErrEpochMismatch            = fmt.Errorf("epoch mismatch")
	ErrExactlyOneBitSet         = fmt.Errorf("exactly one aggregation bit should be set")
	ErrAggregationBitsMismatch  = fmt.Errorf("aggregation bits mismatch committee size")
)

Functions

This section is empty.

Types

type CommitteeSubscribe

type CommitteeSubscribe interface {
	AddAttestationSubscription(ctx context.Context, p *cltypes.BeaconCommitteeSubscription) error
	CheckAggregateAttestation(att *solid.Attestation) error
}

type CommitteeSubscribeMgmt

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

func NewCommitteeSubscribeManagement

func NewCommitteeSubscribeManagement(
	ctx context.Context,
	indiciesDB kv.RoDB,
	beaconConfig *clparams.BeaconChainConfig,
	netConfig *clparams.NetworkConfig,
	ethClock eth_clock.EthereumClock,
	sentinel sentinel.SentinelClient,
	state *state.CachingBeaconState,
	aggregationPool aggregation.AggregationPool,
	syncedData *synced_data.SyncedDataManager,
) *CommitteeSubscribeMgmt

func (*CommitteeSubscribeMgmt) AddAttestationSubscription

func (c *CommitteeSubscribeMgmt) AddAttestationSubscription(ctx context.Context, p *cltypes.BeaconCommitteeSubscription) error

func (*CommitteeSubscribeMgmt) CheckAggregateAttestation

func (c *CommitteeSubscribeMgmt) CheckAggregateAttestation(att *solid.Attestation) error

Directories

Path Synopsis
Package mock_services is a generated GoMock package.
Package mock_services is a generated GoMock package.

Jump to

Keyboard shortcuts

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