mypy
This commit is contained in:
@@ -77,13 +77,13 @@ async def _tx_status(
|
|||||||
# History too large; check mempool to determine confirmation status.
|
# History too large; check mempool to determine confirmation status.
|
||||||
try:
|
try:
|
||||||
mempool = await c.get_mempool(scripthash)
|
mempool = await c.get_mempool(scripthash)
|
||||||
for entry in mempool:
|
for mem in mempool:
|
||||||
if entry.tx_hash == txid:
|
if mem.tx_hash == txid:
|
||||||
return {
|
return {
|
||||||
"txid": txid,
|
"txid": txid,
|
||||||
"confirmed": False,
|
"confirmed": False,
|
||||||
"height": None,
|
"height": None,
|
||||||
"fee": entry.fee,
|
"fee": mem.fee,
|
||||||
}
|
}
|
||||||
return {"txid": txid, "confirmed": True, "height": None, "fee": None}
|
return {"txid": txid, "confirmed": True, "height": None, "fee": None}
|
||||||
except ElectrumError:
|
except ElectrumError:
|
||||||
|
|||||||
Reference in New Issue
Block a user