Skip to content

Commit 772ba7f

Browse files
committed
test: Fix nTimes typo in feature_pruning test
Fix incorrect variable name in comment (nTimes -> nTime) in feature_pruning.py. This typo caused the test to always reset mine_large_blocks.nTime to 0, rather than only on the first run as intended.
1 parent bfeacc1 commit 772ba7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/feature_pruning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def mine_large_blocks(node, n):
4141
# Set the nTime if this is the first time this function has been called.
4242
# A static variable ensures that time is monotonicly increasing and is therefore
4343
# different for each block created => blockhash is unique.
44-
if "nTimes" not in mine_large_blocks.__dict__:
44+
if "nTime" not in mine_large_blocks.__dict__:
4545
mine_large_blocks.nTime = 0
4646

4747
# Get the block parameters for the first block

0 commit comments

Comments
 (0)