test: Remove wallet dependency of utxo set hash test

This commit is contained in:
Fabian Jahr
2021-02-23 00:16:50 +01:00
parent 1a27af1d7b
commit 4973c5175c
2 changed files with 9 additions and 10 deletions

View File

@@ -49,6 +49,9 @@ class MiniWallet:
self._utxos.append({'txid': cb_tx['txid'], 'vout': 0, 'value': cb_tx['vout'][0]['value']})
return blocks
def get_address(self):
return self._address
def get_utxo(self, *, txid=''):
"""
Returns a utxo and marks it as spent (pops it from the internal list)