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

Commit

Permalink
Merge pull request grpc-ecosystem#41 from tronprotocol/add-reason-enum
Browse files Browse the repository at this point in the history
fix-reason
  • Loading branch information
wubin12 committed May 8, 2018
2 parents 0e65a14 + 54dac0c commit df2ea4b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,7 @@ message DynamicProperties {

enum ReasonCode {
REQUESTED = 0x00;
TCP_ERROR = 0x01;
BAD_PROTOCOL = 0x02;
USELESS_PEER = 0x03;
TOO_MANY_PEERS = 0x04;
DUPLICATE_PEER = 0x05;
INCOMPATIBLE_PROTOCOL = 0x06;
Expand All @@ -255,13 +253,14 @@ enum ReasonCode {
USER_REASON = 0x10;
RESET = 0x11;
SYNC_FAIL = 0x12;
TIME_OUT = 0x13;
FETCH_FAIL = 0x13;
BAD_TX = 0x14;
BAD_BLOCK = 0x15;
FORKED = 0x16;
UNLINKABLE = 0x17;
INCOMPATIBLE_VERSION = 0x18;
INCOMPATIBLE_CHAIN = 0x19;
TIME_OUT = 0x20;
UNKNOWN = 0xFF;
}

Expand Down

0 comments on commit df2ea4b

Please sign in to comment.