Added ValidateBasic() to all Tx for easy stateless pre-filtering
This commit is contained in:
@@ -14,6 +14,7 @@ const (
|
||||
msgInvalidSequence = "Invalid Sequence"
|
||||
msgNoInputs = "No Input Coins"
|
||||
msgNoOutputs = "No Output Coins"
|
||||
msgTooLarge = "Input size too large"
|
||||
)
|
||||
|
||||
func DecodingError() TMError {
|
||||
@@ -43,3 +44,7 @@ func NoInputs() TMError {
|
||||
func NoOutputs() TMError {
|
||||
return New(msgNoOutputs, abci.CodeType_BaseInvalidOutput)
|
||||
}
|
||||
|
||||
func TooLarge() TMError {
|
||||
return New(msgTooLarge, abci.CodeType_EncodingError)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user