test: use MiniWallet for make_utxo helper in feature_rbf.py

This commit is contained in:
Sebastian Falbesoner committed 2021-09-16 16:48:55 +02:00
1 parent 0f27524602
commit f680d27155
2 files changed
+27 -24

No files matched your search

+3 -1
View File
@@ -179,8 +179,10 @@ class MiniWallet:
return {'txid': tx_info['txid'], 'wtxid': tx_info['wtxid'], 'hex': tx_hex, 'tx': tx}
def sendrawtransaction(self, *, from_node, tx_hex):
from_node.sendrawtransaction(tx_hex)
txid = from_node.sendrawtransaction(tx_hex)
self.scan_tx(from_node.decoderawtransaction(tx_hex))
return txid
def make_chain(node, address, privkeys, parent_txid, parent_value, n=0, parent_locking_script=None, fee=DEFAULT_FEE):
"""Build a transaction that spends parent_txid.vout[n] and produces one output with