Skip to content

Commit ffdd94d

Browse files
committed
test: Fix wallet_multisig_descriptor_psbt.py
1 parent ff65b69 commit ffdd94d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/functional/wallet_multisig_descriptor_psbt.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ def run_test(self):
104104

105105
self.log.info("Get a mature utxo to send to the multisig...")
106106
coordinator_wallet = participants["signers"][0]
107-
coordinator_wallet.generatetoaddress(101, coordinator_wallet.getnewaddress())
107+
self.generatetoaddress(self.nodes[0], 101, coordinator_wallet.getnewaddress())
108108

109109
deposit_amount = 6.15
110110
multisig_receiving_address = participants["multisigs"][0].getnewaddress()
111111
self.log.info("Send funds to the resulting multisig receiving address...")
112112
coordinator_wallet.sendtoaddress(multisig_receiving_address, deposit_amount)
113-
self.nodes[0].generate(1)
113+
self.generate(self.nodes[0], 1)
114114
self.sync_all()
115115
for participant in participants["multisigs"]:
116116
assert_approx(participant.getbalance(), deposit_amount, vspan=0.001)
@@ -136,7 +136,7 @@ def run_test(self):
136136
coordinator_wallet.sendrawtransaction(finalized["hex"])
137137

138138
self.log.info("Check that balances are correct after the transaction has been included in a block.")
139-
self.nodes[0].generate(1)
139+
self.generate(self.nodes[0], 1)
140140
self.sync_all()
141141
assert_approx(participants["multisigs"][0].getbalance(), deposit_amount - value, vspan=0.001)
142142
assert_equal(participants["signers"][self.N - 1].getbalance(), value)
@@ -153,7 +153,7 @@ def run_test(self):
153153
coordinator_wallet.sendrawtransaction(finalized["hex"])
154154

155155
self.log.info("Check that balances are correct after the transaction has been included in a block.")
156-
self.nodes[0].generate(1)
156+
self.generate(self.nodes[0], 1)
157157
self.sync_all()
158158
assert_approx(participants["multisigs"][0].getbalance(), deposit_amount - (value * 2), vspan=0.001)
159159
assert_equal(participants["signers"][self.N - 1].getbalance(), value * 2)

0 commit comments

Comments
 (0)