From 3139d0e5da087a91cd0d8111adb74fff0330f9e5 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Fri, 12 Oct 2018 00:53:56 +1100 Subject: [PATCH] Replace hashmap with hashset --- beacon_chain/validation/src/attestation_validation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/validation/src/attestation_validation.rs b/beacon_chain/validation/src/attestation_validation.rs index 5d492719f..21482d5df 100644 --- a/beacon_chain/validation/src/attestation_validation.rs +++ b/beacon_chain/validation/src/attestation_validation.rs @@ -189,11 +189,11 @@ impl AttestationValidationContext &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), } } }