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.
|
// inputs does not match the number of expected inputs.
|
||||||
if scriptInfo.NumInputs != scriptInfo.ExpectedInputs {
|
if scriptInfo.NumInputs != scriptInfo.ExpectedInputs {
|
||||||
str := fmt.Sprintf("transaction input #%d expects %d "+
|
str := fmt.Sprintf("transaction input #%d expects %d "+
|
||||||
"inputs, but referenced output script only "+
|
"inputs, but referenced output script provides "+
|
||||||
"provides %d", i, scriptInfo.ExpectedInputs,
|
"%d", i, scriptInfo.ExpectedInputs,
|
||||||
scriptInfo.NumInputs)
|
scriptInfo.NumInputs)
|
||||||
return TxRuleError(str)
|
return TxRuleError(str)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue