mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
Add more domains to domain cache (#5726)
This commit is contained in:
parent
af5b9222da
commit
17df25f3d7
@ -160,8 +160,8 @@ func (v *ValidatorService) Start() {
|
||||
|
||||
v.conn = conn
|
||||
cache, err := ristretto.NewCache(&ristretto.Config{
|
||||
NumCounters: 1280, // number of keys to track.
|
||||
MaxCost: 128, // maximum cost of cache, 1 item = 1 cost.
|
||||
NumCounters: 1920, // number of keys to track.
|
||||
MaxCost: 192, // maximum cost of cache, 1 item = 1 cost.
|
||||
BufferItems: 64, // number of keys per Get buffer.
|
||||
})
|
||||
if err != nil {
|
||||
|
@ -472,6 +472,8 @@ func (v *validator) UpdateDomainDataCaches(ctx context.Context, slot uint64) {
|
||||
params.BeaconConfig().DomainRandao[:],
|
||||
params.BeaconConfig().DomainBeaconAttester[:],
|
||||
params.BeaconConfig().DomainBeaconProposer[:],
|
||||
params.BeaconConfig().DomainSelectionProof[:],
|
||||
params.BeaconConfig().DomainAggregateAndProof[:],
|
||||
} {
|
||||
_, err := v.domainData(ctx, helpers.SlotToEpoch(slot), d)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user