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.
This commit is contained in:
Dave Collins 2013-07-30 18:04:58 -05:00
parent 357160257c
commit bb7f5da609

View file

@ -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