Skip to content

Commit

Permalink
Use for-loop instead of list comprehension
Browse files Browse the repository at this point in the history
To make it clear that we are intentionally using it for its
side-effects.
  • Loading branch information
practicalswift committed Aug 28, 2017
1 parent 8239794 commit 7821458
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/functional/p2p-compactblocks.py
Expand Up @@ -286,7 +286,8 @@ def test_compactblock_construction(self, node, test_node, version, use_witness_a

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

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

0 comments on commit 7821458

Please sign in to comment.