use passed in parameter and not global in log message.

Should shut up the race detector (and make the printf more correct)
This commit is contained in:
Owain G. Ainsworth 2013-11-21 18:23:45 +00:00
parent 2300b35731
commit 8a19f269ca

View file

@ -66,7 +66,7 @@ func ValidateTransactionScripts(tx *btcutil.Tx, txStore TxStore, flags btcscript
processFunc := func(txInIdx int) { processFunc := func(txInIdx int) {
log.Tracef("validating tx %v input %v len %v", log.Tracef("validating tx %v input %v len %v",
tx.Sha(), currentItem, len(job)) tx.Sha(), txInIdx, len(job))
txin := job[txInIdx] txin := job[txInIdx]
originTxSha := &txin.PreviousOutpoint.Hash originTxSha := &txin.PreviousOutpoint.Hash
origintxidx := txin.PreviousOutpoint.Index origintxidx := txin.PreviousOutpoint.Index