fix: intermittent missing of PoSe ban in feature_llmq_simplepose.py

This commit is contained in:
Konstantin Akimov 2024-12-06 21:43:19 +07:00
parent cf84dffc9f
commit f1905ca950
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -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.