Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Merge branch 'develop' into remove_header
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohong committed Apr 12, 2018
2 parents 0ef1de2 + c56402e commit 1033d54
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,21 @@ service Wallet {

}
};

// the api of tron's db
service Database {
// for tapos
rpc getBlockReference (EmptyMessage) returns (BlockReference) {

}
rpc GetDynamicProperties (EmptyMessage) returns (DynamicProperties) {

}
rpc GetNowBlock (EmptyMessage) returns (Block) {

}
rpc GetBlockByNum (NumberMessage) returns (Block) {

}
};

Expand Down
5 changes: 5 additions & 0 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ message Items {
repeated Transaction transactions = 4;
}

// DynamicProperties
message DynamicProperties {
int64 last_solidity_block_num = 1;
}

enum ReasonCode {
REQUESTED = 0;
TCP_ERROR = 1;
Expand Down

0 comments on commit 1033d54

Please sign in to comment.