@@ -6,7 +6,7 @@ package protocol;
66
77
88option java_package = "org.tron.protos" ; //Specify the name of the package that generated the Java file
9- option java_outer_classname = "Protocal " ; //Specify the class name of the generated Java file
9+ option java_outer_classname = "Protocol " ; //Specify the class name of the generated Java file
1010
1111
1212enum AccountType {
@@ -21,18 +21,15 @@ message Account {
2121 bytes vote_address = 1 ;
2222 int64 vote_count = 2 ;
2323 }
24- bytes accout_name = 1 ;
24+ bytes account_name = 1 ;
2525 AccountType type = 2 ;
2626 bytes address = 3 ;
2727 int64 balance = 4 ;
2828 repeated Vote votes = 5 ;
2929 map <string , int64 > asset = 6 ;
30-
3130}
3231
33- message AccountList {
34- repeated Account accounts = 1 ;
35- }
32+
3633
3734// Witness
3835message Witness {
@@ -45,12 +42,6 @@ message Witness {
4542 int64 latestBlockNum = 7 ;
4643}
4744
48- message WitnessList {
49- repeated Witness witnesses = 1 ;
50- }
51-
52- message NullMessage {
53- }
5445
5546// Transcation
5647
@@ -59,7 +50,6 @@ message TXOutput {
5950 bytes pubKeyHash = 2 ;
6051}
6152
62-
6353message TXInput {
6454 message raw {
6555 bytes txID = 1 ;
@@ -68,15 +58,14 @@ message TXInput {
6858 }
6959 raw raw_data = 1 ;
7060 bytes signature = 4 ;
71-
7261}
7362
7463message TXOutputs {
7564 repeated TXOutput outputs = 1 ;
7665}
7766
7867message Transaction {
79- enum TranscationType {
68+ enum TransactionType {
8069 UtxoType = 0 ;
8170 ContractType = 1 ;
8271 }
@@ -95,7 +84,7 @@ message Transaction {
9584 google.protobuf.Any parameter = 2 ;
9685 }
9786 message raw {
98- TranscationType type = 2 ;
87+ TransactionType type = 2 ;
9988 repeated TXInput vin = 5 ;
10089 repeated TXOutput vout = 7 ;
10190 int64 expiration = 8 ;
@@ -123,14 +112,12 @@ message BlockHeader {
123112}
124113
125114// block
126-
127115message Block {
128116 repeated Transaction transactions = 1 ;
129117 BlockHeader block_header = 2 ;
130118}
131119
132120// Inventory
133-
134121message BlockInventory {
135122 enum Type {
136123 SYNC = 0 ;
0 commit comments