mirror of
https://github.com/btcsuite/btcd.git
synced 2025-02-23 22:47:01 +01:00
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:
parent
25624bc6a7
commit
421a213a4f
1 changed files with 0 additions and 3 deletions
|
@ -325,9 +325,6 @@ func NewScript(scriptSig []byte, scriptPubKey []byte, txidx int, tx *btcwire.Msg
|
||||||
m.bip16 = true
|
m.bip16 = true
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, _ := range tx.TxIn {
|
|
||||||
tx.TxIn[i].SignatureScript = []byte{}
|
|
||||||
}
|
|
||||||
m.tx = *tx
|
m.tx = *tx
|
||||||
m.txidx = txidx
|
m.txidx = txidx
|
||||||
m.pver = pver
|
m.pver = pver
|
||||||
|
|
Loading…
Add table
Reference in a new issue