Browse Source

restore values to allow fee check

283
m0mchil 11 years ago
parent
commit
294de5504f
  1. 3
      plugins/trezor.py

3
plugins/trezor.py

@ -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 = []

Loading…
Cancel
Save