Skip to content

Commit e29e17a

Browse files
authored
Merge pull request #181 from forfreeday/feature/optimize_asset
feature(asset): optimize asset and light node
2 parents 9ae1f62 + f98d0c7 commit e29e17a

2 files changed

Lines changed: 7 additions & 32 deletions

File tree

api/api.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,8 @@ message TransactionExtention {
12221222
repeated bytes constant_result = 3;
12231223
Return result = 4;
12241224
int64 energy_used = 5;
1225+
repeated TransactionInfo.Log logs = 6;
1226+
repeated InternalTransaction internal_transactions = 7;
12251227
}
12261228

12271229
message BlockExtention {

core/Tron.proto

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ message Account {
161161
int64 old_tron_power = 46;
162162
Frozen tron_power = 47;
163163

164+
bool asset_optimized = 60;
165+
164166
// this account create time
165167
int64 create_time = 0x09;
166168
// this last operation time, including transfer, voting and so on. //FIXME fix grammar
@@ -214,38 +216,6 @@ message Account {
214216
repeated Permission active_permission = 33;
215217
}
216218

217-
/* AccountAsset */
218-
message AccountAsset {
219-
220-
/* frozen balance */
221-
message Frozen {
222-
int64 frozen_balance = 1; // the frozen trx balance
223-
int64 expire_time = 2; // the expire time
224-
}
225-
226-
// the create address
227-
bytes address = 1;
228-
229-
// the other asset owned by this account
230-
map<string, int64> asset = 2;
231-
232-
// the other asset owned by this account,key is assetId
233-
map<string, int64> assetV2 = 3;
234-
235-
bytes asset_issued_name = 4;
236-
bytes asset_issued_ID = 5;
237-
238-
map<string, int64> latest_asset_operation_time = 6;
239-
map<string, int64> latest_asset_operation_timeV2 = 7;
240-
241-
map<string, int64> free_asset_net_usage = 8;
242-
map<string, int64> free_asset_net_usageV2 = 9;
243-
244-
// frozen asset(for asset issuer)
245-
repeated Frozen frozen_supply = 10;
246-
}
247-
248-
249219
message Key {
250220
bytes address = 1;
251221
int64 weight = 2;
@@ -598,6 +568,7 @@ enum ReasonCode {
598568
TIME_OUT = 0x20;
599569
CONNECT_FAIL = 0x21;
600570
TOO_MANY_PEERS_WITH_SAME_IP = 0x22;
571+
LIGHT_NODE_SYNC_FAIL = 0x23;
601572
UNKNOWN = 0xFF;
602573
}
603574

@@ -619,6 +590,8 @@ message HelloMessage {
619590
BlockId headBlockId = 6;
620591
bytes address = 7;
621592
bytes signature = 8;
593+
int32 nodeType = 9;
594+
int64 lowestBlockNum = 10;
622595
}
623596

624597
message InternalTransaction {

0 commit comments

Comments
 (0)