mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-08 03:51:22 +00:00
Replace hashmap with hashset
This commit is contained in:
parent
6ef4268d6d
commit
3139d0e5da
@ -189,11 +189,11 @@ impl<T> AttestationValidationContext<T>
|
|||||||
&self.validator_store)?;
|
&self.validator_store)?;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the hashmap of voters is None, the signature verification failed.
|
* If the hashset of voters is None, the signature verification failed.
|
||||||
*/
|
*/
|
||||||
match voted_hashset {
|
match voted_hashset {
|
||||||
None => Err(AttestationValidationError::BadAggregateSignature),
|
None => Err(AttestationValidationError::BadAggregateSignature),
|
||||||
Some(hashmap) => Ok(hashmap),
|
Some(hashset) => Ok(hashset),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user