From 17d7c38ba083a3833c13bd6ba7267c721a0d59ab Mon Sep 17 00:00:00 2001 From: Junwei Chen <11361147+KngZhi@users.noreply.github.com> Date: Mon, 30 May 2022 13:36:30 +0800 Subject: [PATCH] fix: add `eip150Block` to `gensis.json` otherwise, it would throw an error msg > Fatal: Failed to write genesis block: unsupported fork ordering: eip150Block not enabled, but eip155Block enabled at 0 [ref](https://github.com/ethereum/go-ethereum/issues/20676#issuecomment-586865377) --- ch5/build.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ch5/build.rst b/ch5/build.rst index a35e8cc..96ee03b 100644 --- a/ch5/build.rst +++ b/ch5/build.rst @@ -54,6 +54,7 @@ "config": { "chainId": 987, "homesteadBlock": 0, + "eip150Block": 0, "eip155Block": 0, "eip158Block": 0 }, @@ -70,6 +71,7 @@ "config": { "chainId": 987, "homesteadBlock": 0, + "eip150Block": 0, "eip155Block": 0, "eip158Block": 0 }, @@ -96,6 +98,8 @@ +----------------+-------------------------------------------------------------------------------------------------------------------+ | homesteadBlock | 是否为HomeStead版本的区块,设置为0表明是。 | +----------------+-------------------------------------------------------------------------------------------------------------------+ +| eip150Block | EIP150 [#]_ 是一个以太坊分叉提议,通过增加 Gas Prices 来应对 DoS 攻击,是 EIP155 的前提,因此也要加入并设为0 | ++----------------+-------------------------------------------------------------------------------------------------------------------+ | eip155Block | EIP155 [#]_ 是一个以太坊分叉提议,为了和以前的以太坊经典ETC 链条分叉而存在,我们私链不需要它,设为0。 | +----------------+-------------------------------------------------------------------------------------------------------------------+ | eip158Block | EIP158 [#]_ 是一个以太坊分叉提议,为了解决之前以太坊空账户造成效率低下的协议漏洞而分叉,我们私链不需要它,设为0。 | @@ -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 \ No newline at end of file +.. [#] 笔者注:更多参考见 https://github.com/ethereum/go-ethereum/wiki/Management-APIs