Should have signed the attestions in `test_filtered_block_tree` test

This commit is contained in:
Hsiao-Wei Wang 2020-05-21 03:02:02 +08:00
parent 763d74bbf5
commit d92efdf071
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ def test_filtered_block_tree(spec, state):
for i in range(spec.SLOTS_PER_EPOCH): for i in range(spec.SLOTS_PER_EPOCH):
slot = rogue_block.slot + i slot = rogue_block.slot + i
for index in range(spec.get_committee_count_at_slot(non_viable_state, slot)): for index in range(spec.get_committee_count_at_slot(non_viable_state, slot)):
attestation = get_valid_attestation(spec, non_viable_state, rogue_block.slot + i, index) attestation = get_valid_attestation(spec, non_viable_state, slot, index, signed=True)
attestations.append(attestation) attestations.append(attestation)
# tick time forward to be able to include up to the latest attestation # tick time forward to be able to include up to the latest attestation