From 294de5504f7d758327a29f025d2a6a459a6a6acf Mon Sep 17 00:00:00 2001 From: m0mchil Date: Sat, 12 Jul 2014 20:17:48 +0300 Subject: [PATCH] restore values to allow fee check --- plugins/trezor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/trezor.py b/plugins/trezor.py index 0798cb8e0..8b850e2d0 100644 --- a/plugins/trezor.py +++ b/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 = []