Replace hashmap with hashset

This commit is contained in:
Paul Hauner 2018-10-12 00:53:56 +11:00
parent 6ef4268d6d
commit 3139d0e5da
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -189,11 +189,11 @@ impl<T> AttestationValidationContext<T>
&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 {
None => Err(AttestationValidationError::BadAggregateSignature),
Some(hashmap) => Ok(hashmap),
Some(hashset) => Ok(hashset),
}
}
}