mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
feat: functional tests for RPC getgovernanceinfo
This commit is contained in:
parent
91e9dd41bd
commit
3971613285
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user