From af6437eb13afdf901fb4a56c0303ac4e3e1c584c Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 23 Jan 2019 20:59:59 +1100 Subject: [PATCH] Update validator client for types change --- validator_client/src/block_producer/grpc.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/validator_client/src/block_producer/grpc.rs b/validator_client/src/block_producer/grpc.rs index 033965b169..ca47ee3a6b 100644 --- a/validator_client/src/block_producer/grpc.rs +++ b/validator_client/src/block_producer/grpc.rs @@ -25,12 +25,15 @@ impl BeaconNode for BeaconBlockServiceClient { let (signature, _) = Signature::ssz_decode(block.get_signature(), 0) .map_err(|_| BeaconNodeError::DecodeFailure)?; + let (randao_reveal, _) = Signature::ssz_decode(block.get_randao_reveal(), 0) + .map_err(|_| BeaconNodeError::DecodeFailure)?; + // TODO: this conversion is incomplete; fix it. Ok(Some(BeaconBlock { slot: block.get_slot(), parent_root: Hash256::zero(), state_root: Hash256::zero(), - randao_reveal: Hash256::from(block.get_randao_reveal()), + randao_reveal, candidate_pow_receipt_root: Hash256::zero(), signature, body: BeaconBlockBody {