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. |
Click to show internal directories.
Click to hide internal directories.