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

Commit

Permalink
add error code for broadcast.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohong committed May 8, 2018
1 parent 4bc508c commit 8f7655a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,19 @@ service Database {
message Return {
enum response_code {
SUCCESS = 0;
SIGERROR = 1; // error in signature
CONTRACT_VALIDATE_ERROR = 2;
CONTRACT_EXE_ERROR = 3;
BANDWITH_ERROR = 4;
DUP_TRANSACTION_ERROR = 5;
TAPOS_ERROR = 6;
TOO_BIG_TRANSACTION_ERROR = 7;
OTHER_ERROR = 20;
}

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

}

message BlockReference {
Expand Down

0 comments on commit 8f7655a

Please sign in to comment.