tbugfix: for_sig != -1 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c400583443aa49bc88cafec240dbe51a8b26a8a2 DIR parent 299f30944fd5496aba7ab419b66850af75e5d843 HTML Author: thomasv <thomasv@gitorious> Date: Thu, 21 Feb 2013 16:51:02 +0100 bugfix: for_sig != -1 Diffstat: M lib/bitcoin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/bitcoin.py b/lib/bitcoin.py t@@ -397,7 +397,7 @@ def raw_tx( inputs, outputs, for_sig = None ): s += var_int( len(tx_filter(script))/2 ) # script length s += script # script s += int_to_hex(0,4) # lock time - if for_sig is not None and for_sig != 1: s += int_to_hex(1, 4) # hash type + if for_sig is not None and for_sig != -1: s += int_to_hex(1, 4) # hash type return tx_filter(s)