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

fix: add eip150Block to gensis.json #14

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
7 changes: 6 additions & 1 deletion ch5/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"config": {
"chainId": 987,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0
},
Expand All @@ -70,6 +71,7 @@
"config": {
"chainId": 987,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0
},
Expand All @@ -96,6 +98,8 @@
+----------------+-------------------------------------------------------------------------------------------------------------------+
| homesteadBlock | 是否为HomeStead版本的区块,设置为0表明是。 |
+----------------+-------------------------------------------------------------------------------------------------------------------+
| eip150Block | EIP150 [#]_ 是一个以太坊分叉提议,通过增加 Gas Prices 来应对 DoS 攻击,是 EIP155 的前提,因此也要加入并设为0 |
+----------------+-------------------------------------------------------------------------------------------------------------------+
| eip155Block | EIP155 [#]_ 是一个以太坊分叉提议,为了和以前的以太坊经典ETC 链条分叉而存在,我们私链不需要它,设为0。 |
+----------------+-------------------------------------------------------------------------------------------------------------------+
| eip158Block | EIP158 [#]_ 是一个以太坊分叉提议,为了解决之前以太坊空账户造成效率低下的协议漏洞而分叉,我们私链不需要它,设为0。 |
Expand Down Expand Up @@ -317,6 +321,7 @@ geth启动时命令行参数解释如下表:
| shh | 提供了分布式网络 P2P Whisper通信协议的相关方法 |
+----------+------------------------------------------------------------------+

.. [#] Vitalik Buterin (2016), ‘Gas cost changes for IO-heavy operations’, Available at: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-150.md
.. [#] Vitalik Buterin (2016), ‘Simple replay attack protection’, Available at: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md
.. [#] Vitalik Buterin (2016), ‘State clearing’, Available at: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-158.md
.. [#] 笔者注:更多参考见 https://github.com/ethereum/go-ethereum/wiki/Management-APIs
.. [#] 笔者注:更多参考见 https://github.com/ethereum/go-ethereum/wiki/Management-APIs