Skip to content

Commit 764e1bc

Browse files
nmarleyDmitriy Korniychuk
authored andcommitted
Update activemn if protx info changed (dashpay#3176)
* Update activemn if protx info changed * Add `==` and `!=` operators to CDeterministicMNState * Only re-init active MN if its IP changed, changes to payout, voting etc. can be done without it * Test `masternode status` updates * Don't track mnListEntry anymore and instead get the DMN on demand * Revert "Add `==` and `!=` operators to CDeterministicMNState" This reverts commit fba4687.
1 parent ab07df2 commit 764e1bc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/functional/dip3-deterministicmns.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,12 @@ def run_test(self):
195195
assert(old_voting_address != new_voting_address)
196196
# also check if funds from payout address are used when no fee source address is specified
197197
node.sendtoaddress(mn.rewards_address, 0.001)
198-
node.protx('update_registrar', mn.protx_hash, "", new_voting_address, "")
198+
node.protx('update_registrar', mn.protx_hash, "", new_voting_address, mn.rewards_address)
199199
node.generate(1)
200200
self.sync_all()
201201
new_dmnState = mn.node.masternode("status")["dmnState"]
202202
new_voting_address_from_rpc = new_dmnState["votingAddress"]
203203
assert(new_voting_address_from_rpc == new_voting_address)
204-
# make sure payoutAddress is the same as before
205-
assert(old_dmnState["payoutAddress"] == new_dmnState["payoutAddress"])
206204

207205
def prepare_mn(self, node, idx, alias):
208206
mn = Masternode()

0 commit comments

Comments
 (0)