From 0d82d26408e03eee7ea287aad3c169c0eeb27a35 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Mon, 26 Dec 2016 16:49:29 -0800 Subject: [PATCH] Frist commit on types.proto --- types/application.go | 2 +- types/types.proto | 27 ++++----------------------- 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/types/application.go b/types/application.go index 0137f1e1a..b001bc3c2 100644 --- a/types/application.go +++ b/types/application.go @@ -8,7 +8,7 @@ import ( type Application interface { // Return application info - Info() (string, *TMSPInfo, *LastBlockInfo, *ConfigInfo) + Info() ResponseInfo // Set application option (e.g. mode=mempool, mode=consensus) SetOption(key string, value string) (log string) diff --git a/types/types.proto b/types/types.proto index f18391ee7..8d0860c9a 100644 --- a/types/types.proto +++ b/types/types.proto @@ -165,11 +165,10 @@ message ResponseFlush{ } message ResponseInfo { - string info = 1; // backwards compatible - - TMSPInfo tmsp_info = 2; - LastBlockInfo last_block = 3; - ConfigInfo config = 4; + string info = 1; + string version = 2; + uint64 last_block_height = 3; + bytes last_block_app_hash = 4; } message ResponseSetOption{ @@ -211,24 +210,6 @@ message ResponseEndBlock{ repeated Validator diffs = 4; } -//---------------------------------------- -// Info types - -message TMSPInfo { - string Version = 1; -} - -message LastBlockInfo { - uint64 block_height = 1; - bytes app_hash = 2; -} - -message ConfigInfo { - uint64 max_block_size_bytes = 1; - uint64 max_block_size_txs = 2; - uint64 max_tx_size = 3; -} - //---------------------------------------- // Blockchain Types