Gas Analyze
#3038
Replies: 1 comment
-
感觉是可接受的。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
拿以下例子分析 Gas 消耗。
具体如下:
charge_intrinsic: 183 bytes, total: 600
charge_gas_with_size: op: LD_CONST, size: 33, total: 66
charge_gas_with_size: op: CALL, size: 1, total: 1133
charge_gas_with_size: op: CALL, size: 1, total: 1133
charge_gas: op: POP total: 2
charge_gas: op: RET total: 639
总和: 600 + 66 + 1133 * 2 + 2 + 639 + 2080 + 7200 = 12853
其中,交易大小扣费 和 账户更新收费 每个交易都会有的。
Beta Was this translation helpful? Give feedback.
All reactions