Skip to content

Commit d122181

Browse files
committed
Append block body attestations iteratively in Gloas tests
1 parent 4054cb5 commit d122181

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/core/pyspec/eth_consensus_specs/test/gloas/fork_choice/test_filter_node_tree_variants.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ def test_get_head_prunes_childless_unviable_full_variant(spec, state):
118118
next_slots(spec, branch_state, branch_slot - branch_state.slot - 1)
119119
branch_block = build_empty_block_for_next_slot(spec, branch_state)
120120
assert branch_block.slot == branch_slot
121-
branch_block.body.attestations = attestations
121+
for attestation in attestations:
122+
branch_block.body.attestations.append(attestation)
122123
signed_branch_block = state_transition_and_sign_block(spec, branch_state, branch_block)
123124
yield from tick_and_add_block(spec, store, signed_branch_block, test_steps)
124125
branch_root = signed_branch_block.message.hash_tree_root()
@@ -260,7 +261,8 @@ def test_get_head_prunes_childless_unviable_empty_variant(spec, state):
260261
next_slots(spec, branch_state, branch_slot - branch_state.slot - 1)
261262
branch_block = build_empty_block_for_next_slot(spec, branch_state)
262263
assert branch_block.slot == branch_slot
263-
branch_block.body.attestations = attestations
264+
for attestation in attestations:
265+
branch_block.body.attestations.append(attestation)
264266
if branch_root == b_root:
265267
branch_block.body.signed_execution_payload_bid.message.parent_block_hash = (
266268
signed_b.message.body.signed_execution_payload_bid.message.block_hash

0 commit comments

Comments
 (0)