Add error info

This commit is contained in:
Nex
2018-10-08 18:36:20 +08:00
parent dbc8d522b6
commit 5b0dc19856
3 changed files with 28 additions and 9 deletions

View File

@@ -20,11 +20,12 @@ message CreateLedgerRequest {
string name = 1;
}
message CreateLedgerResponse {
bool ok = 1;
Error error = 1;
}
message GetLedgersResponse {
repeated string ledgers = 1;
Error error = 1;
repeated string ledgers = 2;
}
message SendTransactionRequest {
@@ -38,5 +39,6 @@ message SendTransactionRequest {
Transaction transaction = 2;
}
message SendTransactionResponse {
bytes hash = 1;
Error error = 1;
bytes hash = 2;
}