运行环境:Centos7 , geth1.12.0初始化已经执行完了。在启动geth时报Fatal: Failed to register the Ethereum service: ethash is only supported as a historical component of already merged networks错误。
查官方文档说1.12.0版本已经不再支持PoW
Release Krogam DMZ (v1.12.0) · ethereum/go-ethereum · GitHub
启动命令:
geth --http --http.addr='0.0.0.0' --http.corsdomain=* --http.vhosts "*" --nodiscover --maxpeers '5' --networkid 12345 --datadir '/eth/data/node1' --http.api "db,net,eth,web3,personal,miner,debug,admin" --snapshot=false --allow-insecure-unlock console
解决方案:问题已经用降版本的方式处理了,用1.11.6可以。