From edd4073d70642b42cea9a9e5a2c6d34f413cf7d8 Mon Sep 17 00:00:00 2001 From: enoch Date: Mon, 21 Apr 2025 16:03:19 +0100 Subject: [PATCH] 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. Github-Pull: #32312 Rebased-From: 772ba7f9ce09e836a51636524a8a96a23946d658 --- test/functional/feature_pruning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/feature_pruning.py b/test/functional/feature_pruning.py index 8d924282cfc..eeb2a78ba6f 100755 --- a/test/functional/feature_pruning.py +++ b/test/functional/feature_pruning.py @@ -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