mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 13:58:09 -05:00
Fork choice: Ensure lengths are the same before checking overlap (#4663)
* Ensure lengths are the same before checking overlap
This commit is contained in:
committed by
prylabs-bulldozer[bot]
parent
127f05d531
commit
4960acb285
@@ -107,7 +107,7 @@ func (s *Service) seen(att *ethpb.Attestation) (bool, error) {
|
||||
if !ok {
|
||||
return false, errors.New("not a bit field")
|
||||
}
|
||||
if savedBitlist.Overlaps(att.AggregationBits) {
|
||||
if savedBitlist.Len() == att.AggregationBits.Len() && savedBitlist.Overlaps(att.AggregationBits) {
|
||||
return true, nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user