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)
|
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…
Reference in New Issue