Skip to content

Commit 1832827

Browse files
committed
fix: force mnsync to skip gov obj sync on reconnection
1 parent 08331bb commit 1832827

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/functional/feature_governance_cl.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from test_framework.messages import uint256_to_string
1010
from test_framework.test_framework import DashTestFramework
11-
from test_framework.util import assert_equal, satoshi_round
11+
from test_framework.util import assert_equal, force_finish_mnsync, satoshi_round
1212

1313
class DashGovernanceTest (DashTestFramework):
1414
def set_test_params(self):
@@ -132,6 +132,9 @@ def run_test(self):
132132

133133
self.log.info("Reconnect isolated node and confirm the next ChainLock will let it sync")
134134
self.reconnect_isolated_node(5, 0)
135+
# Force isolated node to be fully synced so that it would not request gov objects when reconnected
136+
assert_equal(self.nodes[5].mnsync("status")["IsSynced"], False)
137+
force_finish_mnsync(self.nodes[5])
135138
self.nodes[0].generate(1)
136139
self.bump_mocktime(156)
137140
self.sync_blocks()

0 commit comments

Comments
 (0)