From bb4ea7d59ab14e27eeac9ebce1fcd9b3b1b16b2c Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Mon, 3 Feb 2014 20:27:13 -0600 Subject: [PATCH] Include in/out script bytes in script val error. --- scriptval.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scriptval.go b/scriptval.go index 4efdd274f..f3badf19e 100644 --- a/scriptval.go +++ b/scriptval.go @@ -90,8 +90,10 @@ out: // Execute the script pair. if err := engine.Execute(); err != nil { err := fmt.Errorf("validate of input "+ - "%d from transaction %s failed: %v", - txVI.txInIndex, txInHash, err) + "%d from transaction %s failed: %v "+ + "(input script bytes %x, prev output "+ + "script bytes %x)", txVI.txInIndex, + txInHash, err, sigScript, pkScript) v.sendResult(err) break out }