Fatal: Failed to write genesis block: unsupported fork ordering: eip150Block not enabled, but eip155Block enabled at 0
如下图:
在用Geth初始化创世区块时报错:eip150Block没启用时启用了eip155Block
检查一下初始化文件是否确实如此,我的初始化创世区块的json文件如下:
{
"config": {
"chainId": 15,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"coinbase" : "0x0000000000000000000000000000000000000000",
"difficulty" : "0x40000",
"extraData" : "",
"gasLimit" : "0xffffffff",
"nonce" : "0x0000000000000042",
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x00",
"alloc": { }
}
可以看到,json文件中没有eip150Block,只有eip155Block和eip158Block
解决办法
因此在文件中eip155Block上面增加一行"eip150Block": 0,
修改后config部分如下:
"config": {
"chainId": 15,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0
},
重新初始化后成功
初始化的json文件从https://www.cnblogs.com/yty2152/p/10432691.html里复制的,是否是因为之后版本变更要求启用eip155Block时eip150Block必须启用还待确认,哪位大佬知道可以留言告诉我一下,感谢~