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

Commit

Permalink
Merge commit '9ac2d9b122b1e5ce429b4cc607741c56fbe27d4c' into p2p
Browse files Browse the repository at this point in the history
  • Loading branch information
sasaxie committed Mar 23, 2018
2 parents 3f78d1b + 9ac2d9b commit 4e5ce06
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 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
6 changes: 3 additions & 3 deletions core/Discover.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ message Endpoint {
}

message PingMessage {
int32 version = 1;
Endpoint from = 2;
Endpoint to = 3;
Endpoint from = 1;
Endpoint to = 2;
int32 version = 3;
int64 timestamp = 4;
}

Expand Down
8 changes: 5 additions & 3 deletions core/Tron.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";

import "google/protobuf/any.proto";
import "core/Discover.proto";

package protocol;

Expand Down Expand Up @@ -194,16 +195,17 @@ enum ReasonCode {
LOCAL_IDENTITY = 10;
PING_TIMEOUT = 11;
USER_REASON = 12;
UNKNOWN = 13;
UNKNOWN = 255;
}

message DisconnectMessage {
ReasonCode reason = 1;
}

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

0 comments on commit 4e5ce06

Please sign in to comment.