From 40991d3be38012ffda44a5ec36801bf4c1bfa67a Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 16 Apr 2020 14:44:46 +0300 Subject: [PATCH] transaction: drop AgencyType and VotingType I have no idea what are they about. --- pkg/core/transaction/type.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/core/transaction/type.go b/pkg/core/transaction/type.go index b0f37733e..c9d972177 100644 --- a/pkg/core/transaction/type.go +++ b/pkg/core/transaction/type.go @@ -15,11 +15,9 @@ const ( IssueType TXType = 0x01 ClaimType TXType = 0x02 EnrollmentType TXType = 0x20 - VotingType TXType = 0x24 RegisterType TXType = 0x40 ContractType TXType = 0x80 StateType TXType = 0x90 - AgencyType TXType = 0xb0 InvocationType TXType = 0xd1 ) @@ -34,16 +32,12 @@ func (t TXType) String() string { return "ClaimTransaction" case EnrollmentType: return "EnrollmentTransaction" - case VotingType: - return "VotingTransaction" case RegisterType: return "RegisterTransaction" case ContractType: return "ContractTransaction" case StateType: return "StateTransaction" - case AgencyType: - return "AgencyTransaction" case InvocationType: return "InvocationTransaction" default: @@ -78,16 +72,12 @@ func TXTypeFromString(jsonString string) (TXType, error) { return ClaimType, nil case "EnrollmentTransaction": return EnrollmentType, nil - case "VotingTransaction": - return VotingType, nil case "RegisterTransaction": return RegisterType, nil case "ContractTransaction": return ContractType, nil case "StateTransaction": return StateType, nil - case "AgencyTransaction": - return AgencyType, nil case "InvocationTransaction": return InvocationType, nil default: