Invalid Difficulty - Geth同步错误

简介: 当你使用Geth同步以太坊区块链时,可能会遇到这个invalid difficulty错误:WARN [03-01|11:17:41] Synchronisation failed, dropping peer peer=68677387327cf808 ...

当你使用Geth同步以太坊区块链时,可能会遇到这个invalid difficulty错误:

WARN [03-01|11:17:41] Synchronisation failed, dropping peer  peer=68677387327cf808 
                      err="retrieved hash chain is invalid"
ERROR[03-01|11:17:58] 
########## BAD BLOCK #########
Chain config: {ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 
               EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 
               Constantinople: <nil> Engine: ethash}

Number: 7280000
Hash: 0xeddb0590e1095fbe51205a51a297daef7259e229af0432214ae6cb2c1f750750


Error: invalid difficulty: have 2957101900364072, want 2958201410943272
##############################

故障原因

这是因为使用的Geth版本不支持康斯坦丁堡分叉(Constantinople Fork),例如上面错误日志中的Constantinople: <nil>;或者虽然使用了支持康斯坦丁堡分叉的新版本Geth,但本地区块链中包含了旧版本产生的区块,从而导致同步失败。

解决方案

如果使用的不是最新版本的Geth,那么可以升级到最新的稳定版本。官网下载地址:Geth Releases

如果Geth已经升级到最新版本,启动后还是出现invalid difficulty错误,那么可以让Geth运行一会进行本地区块的重组,或者清空本地的区块链数据从头重新同步。


原文链接:Geth Invalid Difficulty错误 - 汇智网

目录
相关文章
微信分享报错 wxlog:Error:fail to load Keychain status:-25300 解决办法
微信分享报错 wxlog:Error:fail to load Keychain status:-25300 解决办法
1716 0
sign check fail:check Sign and Data Fail报错攻略
错误码: com.alipay.api.AlipayApiException: sign check fail: check Sign and ​Fail            报错原因:验签失败 ,未使用正确的支付宝公钥     在新版接口的调用过程中,常常出现此报错。
4307 0
check sign Fail!或sign check fail: check Sign and Data Fail!-自查方案
一、报这个错大多都是支付宝公钥配置错误,不同环境的公钥是不同的,大家先确认自己的支付宝公钥获取是否正确:  1. 沙箱公钥【查看】 密钥生成可参照【如何生成RSA,RSA2密钥】  2. 开放平台密钥【查看】,已创建应用的,直接打开对应的应用进行查看, 创建应用可参照:【如何创建应用】 打开应用查...
1744 0
|
4月前
|
Serverless
函数计算FC的SD运行后报错怎么处理?{"ErrorCode":"ResourceThrottled","ErrorMessage":"Reserve resource exceeded limit"}
函数计算FC的SD运行后报错怎么处理?{"ErrorCode":"ResourceThrottled","ErrorMessage":"Reserve resource exceeded limit"}
168 1
|
5月前
|
SQL Java 数据库连接
错误:FUNCTION simple_notebook.count does not exist.解决方法
错误:FUNCTION simple_notebook.count does not exist.解决方法
|
8月前
|
前端开发
如何解决出现Unknown at rule @applyscss(unknownAtRules)警告?
如何解决出现Unknown at rule @applyscss(unknownAtRules)警告?
577 0
|
9月前
|
SQL 并行计算 数据库连接
ArcSWAT报错:Error Number :-2147467259; 对 COM 组件的调用返回了错误 HRESULT E_FAIL
ArcSWAT报错:Error Number :-2147467259; 对 COM 组件的调用返回了错误 HRESULT E_FAIL
|
Shell 开发工具 git
Git使用commit命令时报错“bad numeric config value ‘ture‘ for ‘color.ui‘: invalid unit”(已解决)
Git使用commit命令时报错“bad numeric config value ‘ture‘ for ‘color.ui‘: invalid unit”(已解决)
186 0
Git使用commit命令时报错“bad numeric config value ‘ture‘ for ‘color.ui‘: invalid unit”(已解决)
|
Java 关系型数据库 MySQL
errorCode 1045, state 28000错误详解即解决方法
errorCode 1045, state 28000错误详解即解决方法
2197 0
errorCode 1045, state 28000错误详解即解决方法
SAP QM 执行事务代码QA11 报错- Selected set code does not exist, or data entered is incomplete-
SAP QM 执行事务代码QA11 报错- Selected set code does not exist, or data entered is incomplete-
SAP QM 执行事务代码QA11 报错- Selected set code does not exist, or data entered is incomplete-