Update tests/core/pyspec/eth2spec/test/context.py

This commit is contained in:
Danny Ryan 2021-03-09 16:09:08 -07:00 committed by GitHub
parent f71a3c6b22
commit 956a7a2ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def _prepare_state(balances_fn: Callable[[Any], Sequence[int]], threshold_fn: Ca
# TODO: instead of upgrading a test phase0 genesis state we can also write a phase1 state helper.
# Decide based on performance/consistency results later.
state = phases[PHASE1].upgrade_to_phase1(state)
elif spec.fork == LIGHTCLIENT_PATCH and not is_fork_test: # do not upgrade if spec ttttest
elif spec.fork == LIGHTCLIENT_PATCH and not is_fork_test: # do not upgrade if spec test
state = phases[LIGHTCLIENT_PATCH].upgrade_to_lightclient_patch(state)
return state