Skip to content

Commit

Permalink
Add simple message to Response in .proto (for debug)
Browse files Browse the repository at this point in the history
  • Loading branch information
motxx committed Jun 19, 2017
1 parent ded7bd6 commit 45304ba
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions schema/endpoint.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,25 @@ package iroha.protocol;
import "block.proto";

enum ResponseCode {
OK = 0;
FAIL = 1;
FAIL = 0; // default value
OK = 1;
}

message ToriiResponse {}
message ToriiResponse {
ResponseCode code = 1;
string message = 2;
}

message VerifyResponse {
ResponseCode code = 1;
string message = 2;
}

message QueryResponse {}

message QueueTransactionResponse {
ResponseCode code = 1;
string message = 2;
}

service CommandService {
Expand Down

0 comments on commit 45304ba

Please sign in to comment.