Skip to content

Commit 7821458

Browse files
Use for-loop instead of list comprehension
To make it clear that we are intentionally using it for its side-effects.
1 parent 8239794 commit 7821458

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/functional/p2p-compactblocks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ def test_compactblock_construction(self, node, test_node, version, use_witness_a
286286

287287
# Store the raw block in our internal format.
288288
block = FromHex(CBlock(), node.getblock("%02x" % block_hash, False))
289-
[tx.calc_sha256() for tx in block.vtx]
289+
for tx in block.vtx:
290+
tx.calc_sha256()
290291
block.rehash()
291292

292293
# Wait until the block was announced (via compact blocks)

0 commit comments

Comments
 (0)