Skip to content

Commit 5850e0b

Browse files
committed
Refactor
1 parent 5c140b1 commit 5850e0b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/beacon/conftest.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,8 @@ def empty_beacon_state(latest_block_roots_length,
362362
justification_bitfield=0,
363363
finalized_slot=0,
364364
latest_crosslinks=(),
365-
latest_block_roots=tuple(ZERO_HASH32 for _ in range(latest_block_roots_length)),
366-
latest_penalized_exit_balances=tuple(
367-
0
368-
for _ in range(latest_penalized_exit_length)
369-
),
365+
latest_block_roots=(ZERO_HASH32,) * latest_block_roots_length,
366+
latest_penalized_exit_balances=(0,) * latest_penalized_exit_length,
370367
latest_attestations=(),
371368
batched_block_roots=(),
372369
processed_pow_receipt_root=b'\x55' * 32,

0 commit comments

Comments
 (0)