我正在尝试创建私有链以供封闭使用。我在以太坊的Params中进行了一些更改。主节点从ETHash挖掘开始。但是其他节点不接受这些块。终端错误是
WARN [05-04|20:58:18.310] Synchronisation failed, dropping peer peer=3403bc3f54728364 err="retrieved hash chain is invalid"
配置如下:
Initialised chain configuration config="{ChainID: 1 EthTest: 1 DAO: 1 DAOSupport: true EIP150: 1 EIP155: 1 EIP158: 1 Byzantium: 1 Constantinople: 1 Petersburg: 1 Istanbul: 1, Muir Glacier: 1, Engine: ethash}"
我已将params / config.go更改为:
MainnetChainConfig = &ChainConfig{
ChainID: big.NewInt(1),
EthtestBlock: big.NewInt(1),
DAOForkBlock: big.NewInt(1),
DAOForkSupport: true,
EIP150Block: big.NewInt(1),
EIP155Block: big.NewInt(1),
EIP158Block: big.NewInt(1),
ByzantiumBlock: big.NewInt(1),
ConstantinopleBlock: big.NewInt(1),
PetersburgBlock: big.NewInt(1),
IstanbulBlock: big.NewInt(1),
MuirGlacierBlock: big.NewInt(1),
Ethash: new(EthashConfig),
}
请提出任何帮助。 我已将每个增强块设置为1。对吗?