aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2017-07-09 22:51:47 +0200
committerpracticalswift <[email protected]>2017-08-28 15:18:14 +0200
commit78214588d6b8b7199015113c9d0d8250d6150014 (patch)
treeafd7ca8d6e4244a96dce812e34374dc62b71919c
parentUse the variable name _ for unused return values (diff)
downloaddiscoin-78214588d6b8b7199015113c9d0d8250d6150014.tar.xz
discoin-78214588d6b8b7199015113c9d0d8250d6150014.zip
Use for-loop instead of list comprehension
To make it clear that we are intentionally using it for its side-effects.
-rwxr-xr-xtest/functional/p2p-compactblocks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/p2p-compactblocks.py b/test/functional/p2p-compactblocks.py
index c5c264765..91c0c406f 100755
--- a/test/functional/p2p-compactblocks.py
+++ b/test/functional/p2p-compactblocks.py
@@ -286,7 +286,8 @@ class CompactBlocksTest(BitcoinTestFramework):
# 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)