test: use MiniWallet for make_utxo helper in feature_rbf.py

This commit is contained in:
Sebastian Falbesoner
2021-09-16 14:42:50 +02:00
parent 0f27524602
commit f680d27155
2 changed files with 27 additions and 24 deletions

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