From 18328279ec20b8090a13f5948d1a6ed839c1dae3 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 4 Jun 2024 18:16:18 +0300 Subject: [PATCH] fix: force mnsync to skip gov obj sync on reconnection --- test/functional/feature_governance_cl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/functional/feature_governance_cl.py b/test/functional/feature_governance_cl.py index 5950bc86b4..2e1f9c31e0 100755 --- a/test/functional/feature_governance_cl.py +++ b/test/functional/feature_governance_cl.py @@ -8,7 +8,7 @@ import json from test_framework.messages import uint256_to_string from test_framework.test_framework import DashTestFramework -from test_framework.util import assert_equal, satoshi_round +from test_framework.util import assert_equal, force_finish_mnsync, satoshi_round class DashGovernanceTest (DashTestFramework): def set_test_params(self): @@ -132,6 +132,9 @@ class DashGovernanceTest (DashTestFramework): self.log.info("Reconnect isolated node and confirm the next ChainLock will let it sync") self.reconnect_isolated_node(5, 0) + # Force isolated node to be fully synced so that it would not request gov objects when reconnected + assert_equal(self.nodes[5].mnsync("status")["IsSynced"], False) + force_finish_mnsync(self.nodes[5]) self.nodes[0].generate(1) self.bump_mocktime(156) self.sync_blocks()