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.
This commit is contained in:
enoch 2025-04-21 16:03:19 +01:00
parent bfeacc18b3
commit 772ba7f9ce

View File

@ -41,7 +41,7 @@ def mine_large_blocks(node, n):
# Set the nTime if this is the first time this function has been called.
# A static variable ensures that time is monotonicly increasing and is therefore
# different for each block created => blockhash is unique.
if "nTimes" not in mine_large_blocks.__dict__:
if "nTime" not in mine_large_blocks.__dict__:
mine_large_blocks.nTime = 0
# Get the block parameters for the first block