搭建geth私链出的问题,ethash is only supported as a historical component of already merged

在Centos7环境下,使用geth1.12.0初始化私链后,启动时遇到FailedtoregistertheEthereumservice:ethashisonlysupportedasahistoricalcomponent...的错误。该问题由于1.12.0版本不支持PoW机制,已通过降级到1.11.6版本成功解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

运行环境: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可以。

转载自:geth1.12.0部署私链启动时报错 | 登链社区 | 技术问答

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值