From 93140802ba2cc4e70e128549b60734c710334f40 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Mon, 17 Mar 2014 00:17:16 -0500 Subject: [PATCH] Improve non-standard tx error message. This commit removes the word "only" from the non-standard transaction error message when the number of items on the stack does not match the number of expected items. This was suggested by @mbelshe. --- mempool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mempool.go b/mempool.go index 20c32450c..954047e98 100644 --- a/mempool.go +++ b/mempool.go @@ -355,8 +355,8 @@ func checkInputsStandard(tx *btcutil.Tx, txStore btcchain.TxStore) error { // inputs does not match the number of expected inputs. if scriptInfo.NumInputs != scriptInfo.ExpectedInputs { str := fmt.Sprintf("transaction input #%d expects %d "+ - "inputs, but referenced output script only "+ - "provides %d", i, scriptInfo.ExpectedInputs, + "inputs, but referenced output script provides "+ + "%d", i, scriptInfo.ExpectedInputs, scriptInfo.NumInputs) return TxRuleError(str) }