Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改错别字过底---》过低 #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/part1/gas.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Gas 中译是:瓦斯、汽油,代表一种可燃气体。
这样不管合约是否良好,最坏情况也只是消耗 gasLimit 量的燃料。

然而,一笔交易所必须支付的燃料已经在区块中通过该交易已执行的计算量记录。
如果你不想支出太多燃料,而故意设置过底的 gas limit 是没太多帮助的。
如果你不想支出太多燃料,而故意设置过低的 gas limit 是没太多帮助的。
你必须支付足够燃料来支付本交易所必要的计算资源。如果交易尚未执行完成,而燃料已用完,
将出现一个 `Out of Gas` 的错误。特别注意的是,即使交易失败,你也必须为已占用的计算资源所支付手续费。
比如,你通过合约给 TFBOYS 投票,设置 gasPrice=2 gwei,gasLimit=40000(实现投票需要40001的燃料开销),
Expand Down Expand Up @@ -100,4 +100,4 @@ Gas 中译是:瓦斯、汽油,代表一种可燃气体。
+ Gwei(Shannon) = 10**9 Wei
+ Microether(Szabo) = 10**12 Wei
+ Milliether(Finney) = 10**15 Wei
+ Ether = 10**18 Wei
+ Ether = 10**18 Wei