From aaf8ea643b7078fb60a5b5c340f55d2c57ceb38e Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 28 Aug 2023 01:52:25 +0100 Subject: [PATCH] Fix feature_dbcrash.py --- test/functional/feature_dbcrash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/feature_dbcrash.py b/test/functional/feature_dbcrash.py index 077bbd71a1..896f74e246 100755 --- a/test/functional/feature_dbcrash.py +++ b/test/functional/feature_dbcrash.py @@ -253,7 +253,7 @@ def run_test(self): while current_height + 1 > self.nodes[3].getblockcount(): block_hashes.extend(self.generatetoaddress( self.nodes[3], - nblocks=min(10, current_height + 1 - self.nodes[3].getblockcount()), + nblocks=10, # new address to avoid mining a block that has just been invalidated address=getnewdestination()[2], sync_fun=self.no_op,