From cd7a01a1fe085fe8ec9da68bf71c2891245974c4 Mon Sep 17 00:00:00 2001 From: Heng Zhang Date: Wed, 21 Mar 2018 17:47:39 +0800 Subject: [PATCH 1/2] add GetAssetIssueByAccount. --- api/api.proto | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/api.proto b/api/api.proto index aa50632d1b4..6619c5c3a26 100644 --- a/api/api.proto +++ b/api/api.proto @@ -52,6 +52,7 @@ service Wallet { rpc TransferAsset (TransferAssetContract) returns (Transaction) { } + rpc ParticipateAssetIssue (ParticipateAssetIssueContract) returns (Transaction) { } @@ -61,6 +62,9 @@ service Wallet { } rpc GetAssetIssueList (EmptyMessage) returns (AssetIssueList) { + } + rpc GetAssetIssueByAccount (Account) returns (AssetIssueList) { + } rpc GetNowBlock (EmptyMessage) returns (Block) { From 9ac2d9b122b1e5ce429b4cc607741c56fbe27d4c Mon Sep 17 00:00:00 2001 From: sasaxie Date: Fri, 23 Mar 2018 12:09:38 +0800 Subject: [PATCH 2/2] add P2pMessage.HelloMessage.from --- core/Discover.proto | 6 +++--- core/Tron.proto | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/core/Discover.proto b/core/Discover.proto index cc795db63ff..2a9668ba75c 100644 --- a/core/Discover.proto +++ b/core/Discover.proto @@ -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; } diff --git a/core/Tron.proto b/core/Tron.proto index 8a86eebcce9..ea8cfd0705a 100644 --- a/core/Tron.proto +++ b/core/Tron.proto @@ -1,6 +1,7 @@ syntax = "proto3"; import "google/protobuf/any.proto"; +import "core/Discover.proto"; package protocol; @@ -194,7 +195,7 @@ enum ReasonCode { LOCAL_IDENTITY = 10; PING_TIMEOUT = 11; USER_REASON = 12; - UNKNOWN = 13; + UNKNOWN = 255; } message DisconnectMessage { @@ -202,8 +203,9 @@ message DisconnectMessage { } message HelloMessage { - int32 p2pVersion = 1; - string clientId = 2; + Endpoint from = 1; + int32 version = 2; + string clientId = 3; int32 listenPort = 4; string peerId = 5; }