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.
This commit is contained in:
Dave Collins 2014-03-17 00:17:16 -05:00
parent 24028ad37f
commit 93140802ba

View file

@ -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)
}