sync_contribution_pool

package
v1.9.7-0...-acf8c2f Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIsSuperset = errors.New("sync contribution is a superset of existing attestation")

Functions

This section is empty.

Types

type SyncContributionPool

type SyncContributionPool interface {
	// AddSyncContribution adds a sync committee contribution to the pool.
	AddSyncContribution(headState *state.CachingBeaconState, contribution *cltypes.Contribution) error
	// AddSyncCommitteeMessage aggretates a sync committee message to a contribution to the pool.
	AddSyncCommitteeMessage(headState *state.CachingBeaconState, subCommitee uint64, message *cltypes.SyncCommitteeMessage) error

	// GetSyncContribution retrieves a sync contribution from the pool.
	GetSyncContribution(slot, subcommitteeIndex uint64, beaconBlockRoot common.Hash) *cltypes.Contribution
	// Obtain the sync aggregate for the sync messages pointing to a given beacon block root.
	GetSyncAggregate(slot uint64, beaconBlockRoot common.Hash) (*cltypes.SyncAggregate, error)
}

func NewSyncContributionPool

func NewSyncContributionPool(beaconCfg *clparams.BeaconChainConfig) SyncContributionPool

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