test: Remove wallet dependency of utxo set hash test

This commit is contained in:
Fabian Jahr committed 2021-03-23 20:32:50 +01:00
1 parent 1a27af1d7b
commit 4973c5175c
2 files changed
+9 -10

No files matched your search

+3
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)