mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 20:07:17 +00:00
Sync: use copied bits for seen cache (#10747)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
parent
c922eb9bfc
commit
edb03328ea
@ -252,7 +252,9 @@ func (s *Service) setSeenCommitteeIndicesSlot(slot types.Slot, committeeID types
|
|||||||
s.seenUnAggregatedAttestationLock.Lock()
|
s.seenUnAggregatedAttestationLock.Lock()
|
||||||
defer s.seenUnAggregatedAttestationLock.Unlock()
|
defer s.seenUnAggregatedAttestationLock.Unlock()
|
||||||
b := append(bytesutil.Bytes32(uint64(slot)), bytesutil.Bytes32(uint64(committeeID))...)
|
b := append(bytesutil.Bytes32(uint64(slot)), bytesutil.Bytes32(uint64(committeeID))...)
|
||||||
b = append(b, aggregateBits...)
|
var bits []byte
|
||||||
|
copy(bits, aggregateBits)
|
||||||
|
b = append(b, bits...)
|
||||||
s.seenUnAggregatedAttestationCache.Add(string(b), true)
|
s.seenUnAggregatedAttestationCache.Add(string(b), true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user