diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-09-09 10:38:19 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-09-09 11:27:28 +0200 |
commit | fa56e866e8ac08b35e775a4e37a4e5849e093c7d (patch) | |
tree | 2794fe5f678478c46aa2dce101c97c995bb5097c /test/functional/test_framework | |
parent | faba790bd40b5a9e8849997785020790ff60571b (diff) |
test: Run rpc_txoutproof.py even with wallet disabled
Diffstat (limited to 'test/functional/test_framework')
-rw-r--r-- | test/functional/test_framework/wallet.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/test_framework/wallet.py b/test/functional/test_framework/wallet.py index ae6aa6bdca..39b3bf2a5b 100644 --- a/test/functional/test_framework/wallet.py +++ b/test/functional/test_framework/wallet.py @@ -40,6 +40,10 @@ class MiniWallet: self._utxos.append({'txid': cb_tx['txid'], 'vout': 0, 'value': cb_tx['vout'][0]['value']}) return blocks + def get_utxo(self): + """Return the last utxo. Can be used to get the change output immediately after a send_self_transfer""" + return self._utxos.pop() + def send_self_transfer(self, *, fee_rate=Decimal("0.003"), from_node, utxo_to_spend=None): """Create and send a tx with the specified fee_rate. Fee may be exact or at most one satoshi higher than needed.""" self._utxos = sorted(self._utxos, key=lambda k: k['value']) |