Rename voted_hashmap to voted_hashset

This commit is contained in:
Paul Hauner 2018-10-09 11:08:09 +11:00
parent a998ac2a12
commit 9a59908506
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -164,7 +164,7 @@ impl<T> AttestationValidationContext<T>
a.justified_slot) a.justified_slot)
}; };
let voted_hashmap = let voted_hashset =
verify_aggregate_signature_for_indices( verify_aggregate_signature_for_indices(
&signed_message, &signed_message,
&a.aggregate_sig, &a.aggregate_sig,
@ -175,7 +175,7 @@ impl<T> AttestationValidationContext<T>
/* /*
* If the hashmap of voters is None, the signature verification failed. * If the hashmap of voters is None, the signature verification failed.
*/ */
match voted_hashmap { match voted_hashset {
None => Err(AttestationValidationError::BadAggregateSignature), None => Err(AttestationValidationError::BadAggregateSignature),
Some(hashmap) => Ok(hashmap), Some(hashmap) => Ok(hashmap),
} }