mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-10 19:43:13 +02:00
refactor: test: use _ variable for unused loop counters
substitutes "for x in range(N):" by "for _ in range(N):" indicates to the reader that a block is just repeated N times, and that the loop counter is not used in the body
This commit is contained in:
@@ -55,7 +55,7 @@ class GenerateBlockTest(BitcoinTestFramework):
|
||||
node.generatetoaddress(110, address)
|
||||
|
||||
# Generate some extra mempool transactions to verify they don't get mined
|
||||
for i in range(10):
|
||||
for _ in range(10):
|
||||
node.sendtoaddress(address, 0.001)
|
||||
|
||||
self.log.info('Generate block with txid')
|
||||
|
Reference in New Issue
Block a user