Frist commit on types.proto
This commit is contained in:
parent
a7b7fe83d6
commit
0d82d26408
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue