From f1905ca95039c6d6525483cfaef779a32a419dab Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Fri, 6 Dec 2024 21:43:19 +0700 Subject: [PATCH] fix: intermittent missing of PoSe ban in feature_llmq_simplepose.py --- test/functional/feature_llmq_simplepose.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/functional/feature_llmq_simplepose.py b/test/functional/feature_llmq_simplepose.py index 3d5c382249..c65f1844fa 100755 --- a/test/functional/feature_llmq_simplepose.py +++ b/test/functional/feature_llmq_simplepose.py @@ -179,6 +179,11 @@ class LLMQSimplePoSeTest(DashTestFramework): self.log.info("Expecting instant PoSe banning") self.reset_probe_timeouts() self.mine_quorum(expected_connections=expected_connections, expected_members=expected_contributors, expected_contributions=expected_contributors, expected_complaints=expected_complaints, expected_commitments=expected_contributors, mninfos_online=mninfos_online, mninfos_valid=mninfos_valid) + + if not self.check_banned(mn): + self.log.info("Instant ban still requires 2 missing DKG round. If it is not banned yet, mine 2nd one") + self.reset_probe_timeouts() + self.mine_quorum(expected_connections=expected_connections, expected_members=expected_contributors, expected_contributions=expected_contributors, expected_complaints=expected_complaints, expected_commitments=expected_contributors, mninfos_online=mninfos_online, mninfos_valid=mninfos_valid) else: # It's ok to miss probes/quorum connections up to 5 times. # 6th time is when it should be banned for sure.