mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 19:40:37 +00:00
5a66807989
* First take at updating everything to v5 * Patch gRPC gateway to use prysm v5 Fix patch * Update go ssz --------- Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
25 lines
557 B
Go
25 lines
557 B
Go
package synccommittee
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"github.com/prysmaticlabs/prysm/v5/container/queue"
|
|
)
|
|
|
|
// Store defines the caches for various sync committee objects
|
|
// such as message(un-aggregated) and contribution(aggregated).
|
|
type Store struct {
|
|
messageLock sync.RWMutex
|
|
messageCache *queue.PriorityQueue
|
|
contributionLock sync.RWMutex
|
|
contributionCache *queue.PriorityQueue
|
|
}
|
|
|
|
// NewStore initializes a new sync committee store.
|
|
func NewStore() *Store {
|
|
return &Store{
|
|
messageCache: queue.New(),
|
|
contributionCache: queue.New(),
|
|
}
|
|
}
|