Browse Source

cosigner_pool: fix #7134

patch-4
SomberNight 4 years ago
parent
commit
1e3373bd2f
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 8
      electrum/plugins/cosigner_pool/qt.py

8
electrum/plugins/cosigner_pool/qt.py

@ -34,7 +34,7 @@ import certifi
from electrum import util, keystore, ecc, crypto
from electrum import transaction
from electrum.transaction import Transaction, PartialTransaction, tx_from_any
from electrum.transaction import Transaction, PartialTransaction, tx_from_any, SerializationError
from electrum.bip32 import BIP32Node
from electrum.plugin import BasePlugin, hook
from electrum.i18n import _
@ -248,5 +248,9 @@ class Plugin(BasePlugin):
return
self.listener.clear(keyhash)
tx = tx_from_any(message)
try:
tx = tx_from_any(message)
except SerializationError as e:
window.show_error(_("Electrum was unable to deserialize the transaction:") + "\n" + str(e))
return
show_transaction(tx, parent=window, prompt_if_unsaved=True)

Loading…
Cancel
Save