Stop modifying the passed tx in NewScript.

The only time we need to zero out scripts is for calcScriptHash which operates
on a deep copy anyway. This should make the tx passed to us unmodified now.
This commit is contained in:
Owain G. Ainsworth 2013-06-20 20:01:17 +01:00
parent 25624bc6a7
commit 421a213a4f

View file

@ -325,9 +325,6 @@ func NewScript(scriptSig []byte, scriptPubKey []byte, txidx int, tx *btcwire.Msg
m.bip16 = true
}
for i, _ := range tx.TxIn {
tx.TxIn[i].SignatureScript = []byte{}
}
m.tx = *tx
m.txidx = txidx
m.pver = pver