Browse Source

Frist commit on types.proto

pull/1780/head
Jae Kwon 8 years ago
committed by Ethan Buchman
parent
commit
0d82d26408
2 changed files with 5 additions and 24 deletions
  1. +1
    -1
      types/application.go
  2. +4
    -23
      types/types.proto

+ 1
- 1
types/application.go 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)


+ 4
- 23
types/types.proto View File

@ -165,11 +165,10 @@ message ResponseFlush{
} }
message ResponseInfo { 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{ 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


Loading…
Cancel
Save