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

Commit

Permalink
add response code for return of broad_cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohong committed May 8, 2018
1 parent df2ea4b commit 4dc6857
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,18 @@ service Wallet {
};
};

rpc BroadcastTransaction (Transaction) returns (Return) {
message Return {
enum response_code {
SUCCESS = 0;
}

bool result = 1;
response_code = 2;
bytes message = 3;

}

rpc BroadcastTransaction (Transaction) returns (Return) {
option (google.api.http) = {
post: "/wallet/broadcasttransaction"
body: "*"
Expand Down Expand Up @@ -306,9 +317,6 @@ service Network {
};


message Return {
bool result = 1;
}

message AccountList {
repeated Account accounts = 1;
Expand Down

0 comments on commit 4dc6857

Please sign in to comment.