From 8aeba003a0ca204b1aae0f9e5a086d672b66243e Mon Sep 17 00:00:00 2001 From: zergweak Date: Thu, 3 May 2018 21:35:16 +0800 Subject: [PATCH 1/2] rm transaction type --- core/Tron.proto | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/Tron.proto b/core/Tron.proto index aaf79b79bb3..888635e3971 100644 --- a/core/Tron.proto +++ b/core/Tron.proto @@ -69,7 +69,6 @@ message Account { message acuthrity { AccountId account = 1; bytes permission_name = 2; - } @@ -113,11 +112,6 @@ message TXOutputs { message Transaction { - // transcation type, utxo is desprated. - enum TransactionType { - UtxoType = 0; - ContractType = 1; - } message Contract { enum ContractType { AccountCreateContract = 0; @@ -153,7 +147,7 @@ message Transaction { } message raw { - TransactionType type = 1; + bytes ref_block_bytes = 1; int64 ref_block_num = 3; bytes ref_block_hash = 4; int64 expiration = 8; From d57ad8f4ab0d4e162446ff0fdcf7ab607b5c2f5b Mon Sep 17 00:00:00 2001 From: zergweak Date: Fri, 4 May 2018 19:08:14 +0800 Subject: [PATCH 2/2] remove createaccount api --- api/api.proto | 7 ------- 1 file changed, 7 deletions(-) diff --git a/api/api.proto b/api/api.proto index 91b0412f1c9..730d524035c 100644 --- a/api/api.proto +++ b/api/api.proto @@ -48,13 +48,6 @@ service Wallet { }; }; - rpc CreateAccount (AccountCreateContract) returns (Transaction) { - option (google.api.http) = { - post: "/wallet/createaccount" - body: "*" - }; - }; - rpc VoteWitnessAccount (VoteWitnessContract) returns (Transaction) { option (google.api.http) = { post: "/wallet/votewitnessaccount"