mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-03 10:32:05 +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>
(cherry picked from commit 49502dae92)
Co-authored-by: Lasaro Camargos <lasaro@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
|
|
)
|