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 && fix error.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohong committed May 8, 2018
1 parent 4dc6857 commit a568eb8
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,7 @@ service Wallet {
};
};

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) = {
Expand Down Expand Up @@ -306,6 +297,17 @@ service Database {
}
};

message Return {
enum response_code {
SUCCESS = 0;
}

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

}

message BlockReference {
int64 block_num = 1;
bytes block_hash = 2;
Expand Down

0 comments on commit a568eb8

Please sign in to comment.