From bdc3ea22d651b16cd8bc5af10474be722e82cb83 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Thu, 6 Jan 2022 18:21:31 -0500 Subject: [PATCH] finalize code description --- docs/tutorials/go-built-in.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/go-built-in.md b/docs/tutorials/go-built-in.md index 59c489295..f7b747242 100644 --- a/docs/tutorials/go-built-in.md +++ b/docs/tutorials/go-built-in.md @@ -223,7 +223,9 @@ func (app *KVStoreApplication) CheckTx(req abcitypes.RequestCheckTx) abcitypes.R Any response with a non-zero code will be considered invalid by Tendermint. Our `CheckTx` logic returns `0` to Tendermint when the transaction passes -the validation checks. The specific value of the error code is meaningless to Tendermint, +the validation checks. The specific value of the code is meaningless to Tendermint. +Non-zero codes are logged by Tendermint so applications can provide more specific +information on why the transaction was rejected. While this `CheckTx` is simple and only validates that the transaction is well-formed, it is very common for `CheckTx` to make more complex use of the state of an application.