aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorishaanam <ishaana.misra@gmail.com>2022-05-17 13:35:12 -0400
committerishaanam <ishaana.misra@gmail.com>2022-05-17 13:40:15 -0400
commitc6122f560b5ed57f11441d2616108b43b10721bb (patch)
treed3a3ee2a14ea2d371c27ce89b551b97132c227f7 /test
parentd5d40d59f8d12cf53c5ad1ce9710f3f108cec386 (diff)
test: use sendall in wallet_taproot.py tests
Fixes #25129 (subtractfeefromamount=true fails with insufficient funds)
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/wallet_taproot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/wallet_taproot.py b/test/functional/wallet_taproot.py
index 41bb86f962..a4d836c8fe 100755
--- a/test/functional/wallet_taproot.py
+++ b/test/functional/wallet_taproot.py
@@ -441,11 +441,11 @@ class WalletTaprootTest(BitcoinTestFramework):
self.log.info("Sending everything back...")
- txid = self.rpc_online.sendtoaddress(address=self.boring.getnewaddress(), amount=self.rpc_online.getbalance(), subtractfeefromamount=True)
+ txid = self.rpc_online.sendall(recipients=[self.boring.getnewaddress()])["txid"]
self.generatetoaddress(self.nodes[0], 1, self.boring.getnewaddress(), sync_fun=self.no_op)
assert(self.rpc_online.gettransaction(txid)["confirmations"] > 0)
- psbt = self.psbt_online.walletcreatefundedpsbt([], [{self.boring.getnewaddress(): self.psbt_online.getbalance()}], None, {"subtractFeeFromOutputs": [0]})['psbt']
+ psbt = self.psbt_online.sendall(recipients=[self.boring.getnewaddress()], options={"psbt": True})["psbt"]
res = self.psbt_offline.walletprocesspsbt(psbt)
assert(res['complete'])
rawtx = self.nodes[0].finalizepsbt(res['psbt'])['hex']