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:
parent
357160257c
commit
bb7f5da609
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ func validateAllTxIn(txsha *btcwire.ShaHash, txValidator *btcwire.MsgTx, pver ui
|
||||||
|
|
||||||
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",
|
||||||
&txsha, currentItem, len(job))
|
txsha, currentItem, len(job))
|
||||||
txin := job[txInIdx]
|
txin := job[txInIdx]
|
||||||
originTxSha := &txin.PreviousOutpoint.Hash
|
originTxSha := &txin.PreviousOutpoint.Hash
|
||||||
origintxidx := txin.PreviousOutpoint.Index
|
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++ {
|
for i := 0; i < len(job); i++ {
|
||||||
if resultErrors[i] != nil {
|
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
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue