From a357f3156a4a14734ae4d31ebd30f8d0bf62875e Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Mon, 7 Dec 2015 18:16:03 -0500 Subject: [PATCH] RetCodeEncodingError --- cmd/tmsp/cli.go | 2 +- types/retcode.go | 1 + types/retcode_string.go | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/tmsp/cli.go b/cmd/tmsp/cli.go index 75cd921d..e8fb7a19 100644 --- a/cmd/tmsp/cli.go +++ b/cmd/tmsp/cli.go @@ -204,7 +204,7 @@ func cmdAppendTx(c *cli.Context) { if err != nil { Exit(err.Error()) } - fmt.Println("Sent tx:", txString, "response:", res) + fmt.Println("Response:", res) } // Get application Merkle root hash diff --git a/types/retcode.go b/types/retcode.go index 640f6236..559164c6 100644 --- a/types/retcode.go +++ b/types/retcode.go @@ -13,6 +13,7 @@ const ( RetCodeUnauthorized RetCode = 2 RetCodeInsufficientFees RetCode = 3 RetCodeUnknownRequest RetCode = 4 + RetCodeEncodingError RetCode = 5 ) func (r RetCode) Error() error { diff --git a/types/retcode_string.go b/types/retcode_string.go index 17ea7766..f60dca15 100644 --- a/types/retcode_string.go +++ b/types/retcode_string.go @@ -4,9 +4,9 @@ package types import "fmt" -const _RetCode_name = "RetCodeOKRetCodeInternalErrorRetCodeUnauthorizedRetCodeInsufficientFeesRetCodeUnknownRequest" +const _RetCode_name = "RetCodeOKRetCodeInternalErrorRetCodeUnauthorizedRetCodeInsufficientFeesRetCodeUnknownRequestRetCodeEncodingError" -var _RetCode_index = [...]uint8{0, 9, 29, 48, 71, 92} +var _RetCode_index = [...]uint8{0, 9, 29, 48, 71, 92, 112} func (i RetCode) String() string { if i < 0 || i+1 >= RetCode(len(_RetCode_index)) {