From 8a19f269ca791738258e7ddfd2e6767fcb02b9a4 Mon Sep 17 00:00:00 2001 From: "Owain G. Ainsworth" Date: Thu, 21 Nov 2013 18:23:45 +0000 Subject: [PATCH] use passed in parameter and not global in log message. Should shut up the race detector (and make the printf more correct) --- scriptval.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scriptval.go b/scriptval.go index 64e51be46..3ed201fef 100644 --- a/scriptval.go +++ b/scriptval.go @@ -66,7 +66,7 @@ func ValidateTransactionScripts(tx *btcutil.Tx, txStore TxStore, flags btcscript processFunc := func(txInIdx int) { log.Tracef("validating tx %v input %v len %v", - tx.Sha(), currentItem, len(job)) + tx.Sha(), txInIdx, len(job)) txin := job[txInIdx] originTxSha := &txin.PreviousOutpoint.Hash origintxidx := txin.PreviousOutpoint.Index