git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
299f309
)
bugfix: for_sig != -1
author
thomasv
<thomasv@gitorious>
Thu, 21 Feb 2013 15:51:02 +0000 (16:51 +0100)
committer
thomasv
<thomasv@gitorious>
Thu, 21 Feb 2013 15:51:02 +0000 (16:51 +0100)
lib/bitcoin.py
patch
|
blob
|
history
diff --git
a/lib/bitcoin.py
b/lib/bitcoin.py
index
f84bd58
..
5c209e0
100644
(file)
--- a/
lib/bitcoin.py
+++ b/
lib/bitcoin.py
@@
-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)