feat: functional tests for RPC getgovernanceinfo

This commit is contained in:
Konstantin Akimov 2024-06-23 02:38:42 +07:00
parent 91e9dd41bd
commit 3971613285
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -90,6 +90,15 @@ class DashGovernanceTest (DashTestFramework):
return count == len(self.nodes)
def run_test(self):
governance_info = self.nodes[0].getgovernanceinfo()
assert_equal(governance_info['governanceminquorum'], 1)
assert_equal(governance_info['proposalfee'], 1)
assert_equal(governance_info['superblockcycle'], 20)
assert_equal(governance_info['superblockmaturitywindow'], 10)
assert_equal(governance_info['lastsuperblock'], 120)
assert_equal(governance_info['nextsuperblock'], governance_info['lastsuperblock'] + governance_info['superblockcycle'])
assert_equal(governance_info['governancebudget'], 1000)
map_vote_outcomes = {
0: "none",
1: "yes",