Fix dialog for cancelled TX on Trezor
This commit is contained in:
parent
e9e8b7e960
commit
ef6ccf2bcd
|
@ -175,8 +175,12 @@ class TrezorWallet(NewWallet):
|
|||
|
||||
inputs = self.tx_inputs(tx)
|
||||
outputs = self.tx_outputs(tx)
|
||||
signed_tx = self.get_client().sign_tx('Bitcoin', inputs, outputs)[1]
|
||||
gl_emitter.emit(SIGNAL('trezor_done'))
|
||||
try:
|
||||
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]
|
||||
raw = signed_tx.encode('hex')
|
||||
tx.update(raw)
|
||||
|
|
Loading…
Reference in New Issue