aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-12 15:27:05 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-12 15:26:50 +0200
commitfaf4315c88d8c81c2ff84870bc81aef3cf719816 (patch)
tree8d36325da5b63b959614529d1523f35a6bfe6a13 /test/functional/test_framework
parent9d85c03620bf660cfa7d13080f5c0b191579cbc3 (diff)
test: Return dict in MiniWallet::send_to
Diffstat (limited to 'test/functional/test_framework')
-rw-r--r--test/functional/test_framework/wallet.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/functional/test_framework/wallet.py b/test/functional/test_framework/wallet.py
index fcd396c700..64606b818b 100644
--- a/test/functional/test_framework/wallet.py
+++ b/test/functional/test_framework/wallet.py
@@ -256,15 +256,19 @@ class MiniWallet:
Note that this method fails if there is no single internal utxo
available that can cover the cost for the amount and the fixed fee
(the utxo with the largest value is taken).
-
- Returns a tuple (txid, n) referring to the created external utxo outpoint.
"""
tx = self.create_self_transfer(fee_rate=0)["tx"]
assert_greater_than_or_equal(tx.vout[0].nValue, amount + fee)
tx.vout[0].nValue -= (amount + fee) # change output -> MiniWallet
tx.vout.append(CTxOut(amount, scriptPubKey)) # arbitrary output -> to be returned
txid = self.sendrawtransaction(from_node=from_node, tx_hex=tx.serialize().hex())
- return txid, 1
+ return {
+ "sent_vout": 1,
+ "txid": txid,
+ "wtxid": tx.getwtxid(),
+ "hex": tx.serialize().hex(),
+ "tx": tx,
+ }
def send_self_transfer_multi(self, *, from_node, **kwargs):
"""Call create_self_transfer_multi and send the transaction."""