Browse Source

Fix dialog for cancelled TX on Trezor

283
Michael Wozniak 11 years ago
parent
commit
ef6ccf2bcd
  1. 8
      plugins/trezor.py

8
plugins/trezor.py

@ -175,8 +175,12 @@ class TrezorWallet(NewWallet):
inputs = self.tx_inputs(tx) inputs = self.tx_inputs(tx)
outputs = self.tx_outputs(tx) outputs = self.tx_outputs(tx)
signed_tx = self.get_client().sign_tx('Bitcoin', inputs, outputs)[1] try:
gl_emitter.emit(SIGNAL('trezor_done')) signed_tx = self.get_client().sign_tx('Bitcoin', inputs, outputs)[1]
except Exception, e:
raise e
finally:
gl_emitter.emit(SIGNAL('trezor_done'))
values = [i['value'] for i in tx.inputs] values = [i['value'] for i in tx.inputs]
raw = signed_tx.encode('hex') raw = signed_tx.encode('hex')
tx.update(raw) tx.update(raw)

Loading…
Cancel
Save