From 518db42de75b9714347cd4ad2d549691f28afe6b Mon Sep 17 00:00:00 2001 From: protolambda Date: Sat, 29 Jun 2019 03:19:30 +0200 Subject: [PATCH] fix attestation tests to work with checkpoints --- .../test/phase_0/block_processing/test_process_attestation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_libs/pyspec/eth2spec/test/phase_0/block_processing/test_process_attestation.py b/test_libs/pyspec/eth2spec/test/phase_0/block_processing/test_process_attestation.py index a1f87f059..f083a07f4 100644 --- a/test_libs/pyspec/eth2spec/test/phase_0/block_processing/test_process_attestation.py +++ b/test_libs/pyspec/eth2spec/test/phase_0/block_processing/test_process_attestation.py @@ -205,7 +205,7 @@ def test_future_target_epoch(spec, state): state.slot += spec.MIN_ATTESTATION_INCLUSION_DELAY - attestation.data.target_epoch = spec.get_current_epoch(state) + 1 # target epoch will be too new to handle + attestation.data.target.epoch = spec.get_current_epoch(state) + 1 # target epoch will be too new to handle sign_attestation(spec, state, attestation) yield from run_attestation_processing(spec, state, attestation, False)