restore values to allow fee check

This commit is contained in:
m0mchil 2014-07-12 20:17:48 +03:00
parent e4a6a2962e
commit 294de5504f
1 changed files with 3 additions and 0 deletions

View File

@ -168,8 +168,11 @@ class TrezorWallet(NewWallet):
inputs = self.tx_inputs(tx)
outputs = self.tx_outputs(tx)
signed_tx = self.get_client().sign_tx('Bitcoin', inputs, outputs)[1]
values = [i['value'] for i in tx.inputs]
raw = signed_tx.encode('hex')
tx.update(raw)
for i, txinput in enumerate(tx.inputs):
txinput['value'] = values[i]
def tx_inputs(self, tx):
inputs = []