mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
d17996f8b0
* Update V3 from V4 * Fix build v3 -> v4 * Update ssz * Update beacon_chain.pb.go * Fix formatter import * Update update-mockgen.sh comment to v4 * Fix conflicts. Pass build and tests * Fix test
28 lines
943 B
Go
28 lines
943 B
Go
package synccommittee
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/consensus-types/primitives"
|
|
ethpb "github.com/prysmaticlabs/prysm/v4/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
var _ = Pool(&Store{})
|
|
|
|
// Pool defines the necessary methods for Prysm sync pool to serve
|
|
// validators. In the current design, aggregated attestations
|
|
// are used by proposers and sync committee messages are used by
|
|
// sync aggregators.
|
|
type Pool interface {
|
|
// Methods for Sync Contributions.
|
|
SaveSyncCommitteeContribution(contr *ethpb.SyncCommitteeContribution) error
|
|
SyncCommitteeContributions(slot primitives.Slot) ([]*ethpb.SyncCommitteeContribution, error)
|
|
|
|
// Methods for Sync Committee Messages.
|
|
SaveSyncCommitteeMessage(sig *ethpb.SyncCommitteeMessage) error
|
|
SyncCommitteeMessages(slot primitives.Slot) ([]*ethpb.SyncCommitteeMessage, error)
|
|
}
|
|
|
|
// NewPool returns the sync committee store fulfilling the pool interface.
|
|
func NewPool() Pool {
|
|
return NewStore()
|
|
}
|