restore values to allow fee check
This commit is contained in:
parent
e4a6a2962e
commit
294de5504f
|
@ -168,8 +168,11 @@ 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]
|
signed_tx = self.get_client().sign_tx('Bitcoin', inputs, outputs)[1]
|
||||||
|
values = [i['value'] for i in tx.inputs]
|
||||||
raw = signed_tx.encode('hex')
|
raw = signed_tx.encode('hex')
|
||||||
tx.update(raw)
|
tx.update(raw)
|
||||||
|
for i, txinput in enumerate(tx.inputs):
|
||||||
|
txinput['value'] = values[i]
|
||||||
|
|
||||||
def tx_inputs(self, tx):
|
def tx_inputs(self, tx):
|
||||||
inputs = []
|
inputs = []
|
||||||
|
|
Loading…
Reference in New Issue