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:
parent
24028ad37f
commit
93140802ba
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue