@@ -60,7 +60,7 @@ def __init__(self, setup_data,address=None):
6060 if address is not None :
6161 self .address = address
6262
63- def setup_masternode (mempoolSync ,controlNode , hostNode ,alias ,tier ,hostIP , utxo = None ):
63+ def setup_masternode (mempoolSync ,controlNode , hostNode ,alias ,tier ,hostIP , utxo = None , rewardAddr = "" ):
6464 """Calls fundmasternode with the given data and returns the
6565 MnConfigLine instance."""
6666 txdata = None
@@ -77,7 +77,7 @@ def setup_masternode(mempoolSync,controlNode, hostNode,alias,tier,hostIP, utxo =
7777 pubkey = controlNode .validateaddress (address )["pubkey" ]
7878 if sync_required :
7979 mempoolSync ()
80- data = hostNode .setupmasternode (alias ,txdata ["txhash" ],str (txdata ["vout" ]), pubkey , hostIP )
80+ data = hostNode .setupmasternode (alias ,txdata ["txhash" ],str (txdata ["vout" ]), pubkey , hostIP , rewardAddr )
8181 return MnSetupData (data ,address )
8282
8383class MnTestFramework (BitcoinTestFramework ):
@@ -101,12 +101,12 @@ def for_each_masternode(self, masternode_function):
101101
102102 return result
103103
104- def setup_masternode (self ,controlNodeIndex , hostNodeIndex ,alias ,tier ,utxo = None ):
104+ def setup_masternode (self ,controlNodeIndex , hostNodeIndex ,alias ,tier ,utxo = None , rewardAddr = "" ):
105105 def mempoolSync ():
106106 sync_mempools (self .nodes )
107107 controlNode = self .nodes [controlNodeIndex ]
108108 hostNode = self .nodes [hostNodeIndex ]
109- self .setup [hostNodeIndex ] = setup_masternode (mempoolSync ,controlNode ,hostNode ,alias , tier ,"localhost:%d" % p2p_port (hostNodeIndex ),utxo = utxo )
109+ self .setup [hostNodeIndex ] = setup_masternode (mempoolSync ,controlNode ,hostNode ,alias , tier ,"localhost:%d" % p2p_port (hostNodeIndex ),utxo = utxo , rewardAddr = rewardAddr )
110110 self .mn_control_node_indices [alias ] = controlNodeIndex
111111 self .mn_host_node_indices [alias ] = hostNodeIndex
112112
0 commit comments