Update tests/core/pyspec/eth2spec/test/helpers/attestations.py

Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
This commit is contained in:
Danny Ryan 2021-05-21 13:44:35 -06:00 committed by GitHub
parent b9ad8bca00
commit ba6d19308b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,11 +287,13 @@ def next_epoch_with_attestations(spec,
fill_prev_epoch):
assert state.slot % spec.SLOTS_PER_EPOCH == 0
return next_slots_with_attestations(spec,
state,
spec.SLOTS_PER_EPOCH,
fill_cur_epoch,
fill_prev_epoch)
return next_slots_with_attestations(
spec,
state,
spec.SLOTS_PER_EPOCH,
fill_cur_epoch,
fill_prev_epoch,
)
def prepare_state_with_attestations(spec, state, participation_fn=None):