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

Commit

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

}

rpc ParticipateAssetIssue (ParticipateAssetIssueContract) returns (Transaction) {

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

}
rpc GetAssetIssueByAccount (Account) returns (AssetIssueList) {

}
rpc GetNowBlock (EmptyMessage) returns (Block) {

Expand Down
38 changes: 0 additions & 38 deletions core/Discover.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,6 @@ 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: 28 additions & 0 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,31 @@ 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 192b1df

Please sign in to comment.