From 3f17a01a83bc7928d746209741f806c8a66f9574 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Fri, 13 Sep 2024 20:15:01 +0700 Subject: [PATCH] fix: bump mocktime in simplepose when generating blocks to improve robustness --- test/functional/feature_llmq_simplepose.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/feature_llmq_simplepose.py b/test/functional/feature_llmq_simplepose.py index e556c538f4..c93f503b0f 100755 --- a/test/functional/feature_llmq_simplepose.py +++ b/test/functional/feature_llmq_simplepose.py @@ -101,7 +101,7 @@ class LLMQSimplePoSeTest(DashTestFramework): # move forward to next DKG skip_count = 24 - (self.nodes[0].getblockcount() % 24) if skip_count != 0: - self.bump_mocktime(1, nodes=nodes) + self.bump_mocktime(skip_count, nodes=nodes) self.nodes[0].generate(skip_count) self.sync_blocks(nodes) @@ -147,6 +147,7 @@ class LLMQSimplePoSeTest(DashTestFramework): quorum_info = self.nodes[0].quorum("info", 100, new_quorum) # Mine 8 (SIGN_HEIGHT_OFFSET) more blocks to make sure that the new quorum gets eligible for signing sessions + self.bump_mocktime(8) self.nodes[0].generate(8) self.sync_blocks(nodes) self.log.info("New quorum: height=%d, quorumHash=%s, quorumIndex=%d, minedBlock=%s" % (quorum_info["height"], new_quorum, quorum_info["quorumIndex"], quorum_info["minedBlock"]))