From 6338c5b88051dcefe515e424196bca708b44dd06 Mon Sep 17 00:00:00 2001 From: protolambda Date: Thu, 20 Jun 2019 22:49:03 +0200 Subject: [PATCH] fix custody bug, needs review from Carl --- test_libs/pyspec/eth2spec/test/helpers/custody.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_libs/pyspec/eth2spec/test/helpers/custody.py b/test_libs/pyspec/eth2spec/test/helpers/custody.py index 681add457..bc70c9fa8 100644 --- a/test_libs/pyspec/eth2spec/test/helpers/custody.py +++ b/test_libs/pyspec/eth2spec/test/helpers/custody.py @@ -27,7 +27,7 @@ def get_valid_early_derived_secret_reveal(spec, state, epoch=None): domain_type=spec.DOMAIN_RANDAO, message_epoch=epoch, ), - ) + )[:32] # TODO(Carl): mask is 32 bytes, and signature is 96? Correct to slice the first 32 out? return spec.EarlyDerivedSecretReveal( revealed_index=revealed_index,