Browse Source

Merge pull request #808 from chrisrico/master

Trezor plugin fixes
283
ThomasV 11 years ago
parent
commit
107a0bd278
  1. 8
      plugins/trezor.py

8
plugins/trezor.py

@ -262,6 +262,10 @@ class TrezorWallet(NewWallet):
for txinput in tx.inputs:
txinputtype = types.TxInputType()
if ('is_coinbase' in txinput and txinput['is_coinbase']):
prev_hash = "\0"*32
prev_index = 0xffffffff # signed int -1
else:
address = txinput['address']
try:
address_path = self.address_id(address)
@ -269,10 +273,6 @@ class TrezorWallet(NewWallet):
txinputtype.address_n.extend(address_n)
except: pass
if ('is_coinbase' in txinput and txinput['is_coinbase']):
prev_hash = "\0"*32
prev_index = 0xffffffff # signed int -1
else:
prev_hash = unhexlify(txinput['prevout_hash'])
prev_index = txinput['prevout_n']

Loading…
Cancel
Save