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

Commit

Permalink
Merge pull request grpc-ecosystem#42 from tronprotocol/add_witness_co…
Browse files Browse the repository at this point in the history
…mmittee

Add witness committee
  • Loading branch information
sean-liu55 committed May 9, 2018
2 parents cc24179 + 3913331 commit cf23e93
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
5 changes: 1 addition & 4 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ service Wallet {
};
};



rpc BroadcastTransaction (Transaction) returns (Return) {
rpc BroadcastTransaction (Transaction) returns (Return) {
option (google.api.http) = {
post: "/wallet/broadcasttransaction"
body: "*"
Expand All @@ -46,7 +44,6 @@ rpc BroadcastTransaction (Transaction) returns (Return) {
get: "/wallet/listaccount"
}
};

};

rpc UpdateAccount (AccountUpdateContract) returns (Transaction) {
Expand Down
24 changes: 17 additions & 7 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ message AccountId {
bytes address = 2;
}

// vote message
message Vote {
// the super rep address
bytes vote_address = 1;
// the vote num to this super rep.
int64 vote_count = 2;
}

// Account
message Account {
// vote message
message Vote {
// the super rep address
bytes vote_address = 1;
// the vote num to this super rep.
int64 vote_count = 2;
}
// frozen balance
message Frozen {
// the frozen trx balance
Expand Down Expand Up @@ -64,6 +65,8 @@ message Account {
int64 latest_withdraw_time = 12;
// not used so far
bytes code = 13;
bool is_witness = 14;
bool is_committee = 15;
}

message acuthrity {
Expand All @@ -89,6 +92,13 @@ message Witness {
bool isJobs = 9;
}

// Vote Change
message Votes {
bytes address = 1;
repeated Vote old_votes = 2;
repeated Vote new_votes = 3;
}

// Transcation

message TXOutput {
Expand Down

0 comments on commit cf23e93

Please sign in to comment.