mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-10 23:10:59 +00:00
* Rejects empty transactions in the example kvstore * Add code for rejected transaction; Add test for txn rejection; * Apply suggestions from code review Co-authored-by: Sergio Mena <sergio@informal.systems>
13 lines
295 B
Go
13 lines
295 B
Go
package code
|
|
|
|
// Return codes for the examples
|
|
const (
|
|
CodeTypeOK uint32 = 0
|
|
CodeTypeEncodingError uint32 = 1
|
|
CodeTypeBadNonce uint32 = 2
|
|
CodeTypeUnauthorized uint32 = 3
|
|
CodeTypeUnknownError uint32 = 4
|
|
CodeTypeExecuted uint32 = 5
|
|
CodeTypeRejected uint32 = 6
|
|
)
|