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,