fix(tests): TxCache needs to respond to `x in tx_cache`

pull/1989/head
matejcik 3 years ago committed by matejcik
parent 23a09fc047
commit be6d01729d

@ -74,6 +74,13 @@ class TxCache:
def __getitem__(self, key):
return self.get_tx(key.hex())
def __contains__(self, key):
try:
self.get_tx(key.hex())
return True
except Exception:
return False
@click.command()
@click.argument("coin_name")

Loading…
Cancel
Save