|
@ -2272,13 +2272,13 @@ class ElectrumWindow(QMainWindow): |
|
|
from electrum import transaction |
|
|
from electrum import transaction |
|
|
txid, ok = QInputDialog.getText(self, _('Lookup transaction'), _('Transaction ID') + ':') |
|
|
txid, ok = QInputDialog.getText(self, _('Lookup transaction'), _('Transaction ID') + ':') |
|
|
if ok and txid: |
|
|
if ok and txid: |
|
|
|
|
|
try: |
|
|
r = self.network.synchronous_get([('blockchain.transaction.get',[str(txid)])])[0] |
|
|
r = self.network.synchronous_get([('blockchain.transaction.get',[str(txid)])])[0] |
|
|
if r: |
|
|
except BaseException as e: |
|
|
|
|
|
self.show_message(str(e)) |
|
|
|
|
|
return |
|
|
tx = transaction.Transaction(r) |
|
|
tx = transaction.Transaction(r) |
|
|
if tx: |
|
|
|
|
|
self.show_transaction(tx) |
|
|
self.show_transaction(tx) |
|
|
else: |
|
|
|
|
|
self.show_message("unknown transaction") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@protected |
|
|
@protected |
|
|