bugfix: for_sig != -1

This commit is contained in:
thomasv 2013-02-21 16:51:02 +01:00
parent 299f30944f
commit c400583443
1 changed files with 1 additions and 1 deletions

View File

@ -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)