From bb7f5da609da9f65414a180ad96bf508fb42e188 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 30 Jul 2013 18:04:58 -0500 Subject: [PATCH] Print transaction hash in script val errors. The txsha variable is already a pointer to the hash, so print the variable, not the address of it. --- scriptval.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scriptval.go b/scriptval.go index 37eec3b3..11852cdd 100644 --- a/scriptval.go +++ b/scriptval.go @@ -71,7 +71,7 @@ func validateAllTxIn(txsha *btcwire.ShaHash, txValidator *btcwire.MsgTx, pver ui processFunc := func(txInIdx int) { log.Tracef("validating tx %v input %v len %v", - &txsha, currentItem, len(job)) + txsha, currentItem, len(job)) txin := job[txInIdx] originTxSha := &txin.PreviousOutpoint.Hash origintxidx := txin.PreviousOutpoint.Index @@ -113,7 +113,7 @@ func validateAllTxIn(txsha *btcwire.ShaHash, txValidator *btcwire.MsgTx, pver ui } for i := 0; i < len(job); i++ { if resultErrors[i] != nil { - log.Warnf("tx %v failed input %v, err %v", &txsha, i, resultErrors[i]) + log.Warnf("tx %v failed input %v, err %v", txsha, i, resultErrors[i]) } } return