mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Use for-loop instead of list comprehension
To make it clear that we are intentionally using it for its side-effects.
This commit is contained in:
parent
8239794360
commit
78214588d6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user