From 421a213a4f00a5e807e15092371c15bf933254b2 Mon Sep 17 00:00:00 2001 From: "Owain G. Ainsworth" Date: Thu, 20 Jun 2013 20:01:17 +0100 Subject: [PATCH] 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. --- script.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/script.go b/script.go index 9d68e4d6..8a1bf604 100644 --- a/script.go +++ b/script.go @@ -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