mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
23e2d62c0c
* ensure run * amend * fix initial sync test target Co-authored-by: prestonvanloon <preston@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
25 lines
554 B
Go
25 lines
554 B
Go
package synccommittee
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"github.com/prysmaticlabs/prysm/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(),
|
|
}
|
|
}
|