From 0297ff5d8a027576b0a7943cf0174ca7fc789534 Mon Sep 17 00:00:00 2001 From: zhaohong Date: Fri, 30 Mar 2018 18:39:40 +0800 Subject: [PATCH 1/2] add account update contract. --- api/api.proto | 4 ++++ core/Contract.proto | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/api/api.proto b/api/api.proto index 5d5e810f75e..d01979ee993 100644 --- a/api/api.proto +++ b/api/api.proto @@ -25,6 +25,10 @@ service Wallet { }; + rpc UpdateAccount (AccountUpdateContract) returns (Transaction) { + + }; + rpc CreateAccount (AccountCreateContract) returns (Transaction) { }; diff --git a/core/Contract.proto b/core/Contract.proto index 17b262506df..9d0870973c6 100644 --- a/core/Contract.proto +++ b/core/Contract.proto @@ -28,6 +28,12 @@ message AccountCreateContract { bytes owner_address = 3; } +// update account name if the account has no name. +message AccountUpdateContract{ + bytes account_name = 1; + bytes owner_address = 2; +} + message TransferContract { bytes owner_address = 1; bytes to_address = 2; From 455aa57617648da35319894f325728b490598716 Mon Sep 17 00:00:00 2001 From: sasaxie Date: Sat, 31 Mar 2018 00:01:10 +0800 Subject: [PATCH 2/2] add message reason code: reset --- core/Tron.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/core/Tron.proto b/core/Tron.proto index 60728e653cb..481fdf60f34 100644 --- a/core/Tron.proto +++ b/core/Tron.proto @@ -195,6 +195,7 @@ enum ReasonCode { LOCAL_IDENTITY = 10; PING_TIMEOUT = 11; USER_REASON = 12; + RESET = 16; UNKNOWN = 255; }