mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Fixes bug with attestation validation that arose from change to API
This commit is contained in:
@@ -135,7 +135,7 @@ where
|
|||||||
* Allow extra set bits would permit mutliple different byte layouts (and therefore hashes) to
|
* Allow extra set bits would permit mutliple different byte layouts (and therefore hashes) to
|
||||||
* refer to the same AttesationRecord.
|
* refer to the same AttesationRecord.
|
||||||
*/
|
*/
|
||||||
if a.attester_bitfield.len() > attestation_indices.len() {
|
if a.attester_bitfield.num_set_bits() > attestation_indices.len() {
|
||||||
return Err(AttestationValidationError::InvalidBitfieldEndBits);
|
return Err(AttestationValidationError::InvalidBitfieldEndBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user