From 6937da09943f08710e2f4ba56a62dbbf7243d98b Mon Sep 17 00:00:00 2001 From: Luke Anderson Date: Thu, 28 Mar 2019 18:58:00 +1100 Subject: [PATCH] Added deterministic key generation for testing purposes. --- validator_client/src/service.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/validator_client/src/service.rs b/validator_client/src/service.rs index f62ade97e..745fb42b9 100644 --- a/validator_client/src/service.rs +++ b/validator_client/src/service.rs @@ -26,6 +26,7 @@ use tokio::runtime::Builder; use tokio::timer::Interval; use tokio_timer::clock::Clock; use types::{Epoch, Fork, Slot}; +use types::test_utils::generate_deterministic_keypairs; //TODO: This service should be simplified in the future. Can be made more steamlined. @@ -218,7 +219,7 @@ impl Service { // TODO: keypairs are randomly generated; they should be loaded from a file or generated. // https://github.com/sigp/lighthouse/issues/160 - let keypairs = Arc::new(vec![Keypair::random()]); + let keypairs = generate_deterministic_keypairs(8); /* build requisite objects to pass to core thread */