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

Commit

Permalink
Revert "Feature/devfor evan"
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohong committed Mar 22, 2018
1 parent 222e9e0 commit fcc01fe
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 32 deletions.
4 changes: 0 additions & 4 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ service Wallet {
rpc TransferAsset (TransferAssetContract) returns (Transaction) {

}

rpc ParticipateAssetIssue (ParticipateAssetIssueContract) returns (Transaction) {

}
Expand All @@ -62,9 +61,6 @@ service Wallet {
}
rpc GetAssetIssueList (EmptyMessage) returns (AssetIssueList) {

}
rpc GetAssetIssueByAccount (Account) returns (AssetIssueList) {

}
rpc GetNowBlock (EmptyMessage) returns (Block) {

Expand Down
38 changes: 38 additions & 0 deletions core/Discover.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,44 @@ package protocol;
option java_package = "org.tron.protos"; //Specify the name of the package that generated the Java file
option java_outer_classname = "Discover"; //Specify the class name of the generated Java file

enum ReasonCode {
REQUESTED = 0;
TCP_ERROR = 1;
BAD_PROTOCOL = 2;
USELESS_PEER = 3;
TOO_MANY_PEERS = 4;
DUPLICATE_PEER = 5;
INCOMPATIBLE_PROTOCOL = 6;
NULL_IDENTITY = 7;
PEER_QUITING = 8;
UNEXPECTED_IDENTITY = 9;
LOCAL_IDENTITY = 10;
PING_TIMEOUT = 11;
USER_REASON = 12;
UNKNOWN = 13;
}

message Peer {
bytes address = 1;
int32 port = 2;
string peerId = 3;
}

message DisconnectMessage {
ReasonCode reason = 1;
}

message HelloMessage {
int32 p2pVersion = 1;
string clientId = 2;
int32 listenPort = 4;
string peerId = 5;
}

message PeersMessage {
repeated Peer peers = 1;
}

message Endpoint {
bytes address = 1;
int32 port = 2;
Expand Down
28 changes: 0 additions & 28 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -179,31 +179,3 @@ message Items {
repeated BlockHeader block_headers = 3;
repeated Transaction transactions = 4;
}

enum ReasonCode {
REQUESTED = 0;
TCP_ERROR = 1;
BAD_PROTOCOL = 2;
USELESS_PEER = 3;
TOO_MANY_PEERS = 4;
DUPLICATE_PEER = 5;
INCOMPATIBLE_PROTOCOL = 6;
NULL_IDENTITY = 7;
PEER_QUITING = 8;
UNEXPECTED_IDENTITY = 9;
LOCAL_IDENTITY = 10;
PING_TIMEOUT = 11;
USER_REASON = 12;
UNKNOWN = 13;
}

message DisconnectMessage {
ReasonCode reason = 1;
}

message HelloMessage {
int32 p2pVersion = 1;
string clientId = 2;
int32 listenPort = 4;
string peerId = 5;
}

0 comments on commit fcc01fe

Please sign in to comment.