Frist commit on types.proto

This commit is contained in:
Jae Kwon 2016-12-26 16:49:29 -08:00 committed by Ethan Buchman
parent a7b7fe83d6
commit 0d82d26408
2 changed files with 5 additions and 24 deletions

View File

@ -8,7 +8,7 @@ import (
type Application interface { type Application interface {
// Return application info // Return application info
Info() (string, *TMSPInfo, *LastBlockInfo, *ConfigInfo) Info() ResponseInfo
// Set application option (e.g. mode=mempool, mode=consensus) // Set application option (e.g. mode=mempool, mode=consensus)
SetOption(key string, value string) (log string) SetOption(key string, value string) (log string)

View File

@ -165,11 +165,10 @@ message ResponseFlush{
} }
message ResponseInfo { message ResponseInfo {
string info = 1; // backwards compatible string info = 1;
string version = 2;
TMSPInfo tmsp_info = 2; uint64 last_block_height = 3;
LastBlockInfo last_block = 3; bytes last_block_app_hash = 4;
ConfigInfo config = 4;
} }
message ResponseSetOption{ message ResponseSetOption{
@ -211,24 +210,6 @@ message ResponseEndBlock{
repeated Validator diffs = 4; 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 // Blockchain Types