mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-31 01:41:18 +00:00
modify simplesigntx to match signtx semantics
This commit is contained in:
parent
1d46bd70a9
commit
c642605ad2
File diff suppressed because one or more lines are too long
@ -433,12 +433,9 @@ class ProtocolMixin(object):
|
||||
|
||||
return msg
|
||||
|
||||
@field('serialized_tx')
|
||||
@expect(types.TxRequestSerializedType)
|
||||
def simple_sign_tx(self, coin_name, inputs, outputs):
|
||||
# TODO Deserialize tx and check if inputs/outputs fits
|
||||
msg = self._prepare_simple_sign_tx(coin_name, inputs, outputs)
|
||||
return self.call(msg).serialized
|
||||
return self.call(msg).serialized.serialized_tx
|
||||
|
||||
def _prepare_sign_tx(self, coin_name, inputs, outputs):
|
||||
tx = types.TransactionType()
|
||||
@ -459,8 +456,6 @@ class ProtocolMixin(object):
|
||||
return txes
|
||||
|
||||
def sign_tx(self, coin_name, inputs, outputs):
|
||||
# Temporary solution, until streaming is implemented in the firmware
|
||||
# return self.simple_sign_tx(coin_name, inputs, outputs)
|
||||
|
||||
start = time.time()
|
||||
txes = self._prepare_sign_tx(coin_name, inputs, outputs)
|
||||
|
Loading…
Reference in New Issue
Block a user