diff --git a/types/application.go b/types/application.go index 0137f1e1..b001bc3c 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 f18391ee..8d0860c9 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