From ffa56b437c74a25732306f514687efdd19d74c6c Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 28 Aug 2013 13:46:17 -0500 Subject: [PATCH] Correct error msg for missing input transaction. The error message for missing input transaction had the referenced and referencing transactions backwards. --- validate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validate.go b/validate.go index 5b7852f0..73f8d60d 100644 --- a/validate.go +++ b/validate.go @@ -348,8 +348,8 @@ func countP2SHSigOps(msgTx *btcwire.MsgTx, isCoinBaseTx bool, txStore map[btcwir originTx, exists := txStore[*txInHash] if !exists || originTx.err != nil || originTx.tx == nil { return 0, fmt.Errorf("unable to find input transaction "+ - "%v referenced from transaction %v", txHash, - txInHash) + "%v referenced from transaction %v", txInHash, + txHash) } // Ensure the output index in the referenced transaction is