Include in/out script bytes in script val error.

This commit is contained in:
Dave Collins 2014-02-03 20:27:13 -06:00
parent b7ef1f0946
commit bb4ea7d59a

View file

@ -90,8 +90,10 @@ out:
// Execute the script pair. // Execute the script pair.
if err := engine.Execute(); err != nil { if err := engine.Execute(); err != nil {
err := fmt.Errorf("validate of input "+ err := fmt.Errorf("validate of input "+
"%d from transaction %s failed: %v", "%d from transaction %s failed: %v "+
txVI.txInIndex, txInHash, err) "(input script bytes %x, prev output "+
"script bytes %x)", txVI.txInIndex,
txInHash, err, sigScript, pkScript)
v.sendResult(err) v.sendResult(err)
break out break out
} }