tfix issue #961 - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 477b7c340256d399fc485d4c4aa67ca361470a4a
DIR parent ceaa48fd73cb57035a721f25624a76f408be0e46
HTML Author: ThomasV <thomasv@gitorious>
Date: Thu, 25 Dec 2014 17:24:49 +0100
fix issue #961
Diffstat:
M lib/transaction.py | 3 ++-
M plugins/trezor.py | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
---
DIR diff --git a/lib/transaction.py b/lib/transaction.py
t@@ -452,7 +452,8 @@ def parse_input(vds):
d = {}
prevout_hash = hash_encode(vds.read_bytes(32))
prevout_n = vds.read_uint32()
- d['scriptSig'] = scriptSig = vds.read_bytes(vds.read_compact_size())
+ scriptSig = vds.read_bytes(vds.read_compact_size())
+ d['scriptSig'] = scriptSig.encode('hex')
sequence = vds.read_uint32()
if prevout_hash == '00'*32:
d['is_coinbase'] = True
DIR diff --git a/plugins/trezor.py b/plugins/trezor.py
t@@ -321,7 +321,7 @@ class TrezorWallet(NewWallet):
txinputtype.prev_index = prev_index
if 'scriptSig' in txinput:
- script_sig = txinput['scriptSig']
+ script_sig = txinput['scriptSig'].decode('hex')
txinputtype.script_sig = script_sig
if 'sequence' in txinput: