From c700d014db257cd7ab793cdd116505786c4f75f4 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Tue, 11 Dec 2018 17:49:03 -0800 Subject: [PATCH] update function we removed so test compiles --- beacon_chain/validator_induction/src/inductor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/validator_induction/src/inductor.rs b/beacon_chain/validator_induction/src/inductor.rs index c86fce9e6..2104e1e77 100644 --- a/beacon_chain/validator_induction/src/inductor.rs +++ b/beacon_chain/validator_induction/src/inductor.rs @@ -111,7 +111,7 @@ mod tests { use super::*; use bls::{Keypair, Signature}; - use hashing::proof_of_possession_hash; + use hashing::canonical_hash; use types::{Address, Hash256}; fn registration_equals_record(reg: &ValidatorRegistration, rec: &ValidatorRecord) -> bool { @@ -124,7 +124,7 @@ mod tests { /// Generate a proof of possession for some keypair. fn get_proof_of_possession(kp: &Keypair) -> Signature { - let pop_message = proof_of_possession_hash(&kp.pk.as_bytes()); + let pop_message = canonical_hash(&kp.pk.as_bytes()); Signature::new_hashed(&pop_message, &kp.sk) }