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错误 - 汇智网

目录
相关文章
|
5月前
|
小程序
小程序踩坑:Setting data field "xxxx" to undefined is invalid.
小程序踩坑:Setting data field "xxxx" to undefined is invalid.
86 0
微信分享报错 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            报错原因:验签失败 ,未使用正确的支付宝公钥     在新版接口的调用过程中,常常出现此报错。
4306 0
check sign Fail!或sign check fail: check Sign and Data Fail!-自查方案
一、报这个错大多都是支付宝公钥配置错误,不同环境的公钥是不同的,大家先确认自己的支付宝公钥获取是否正确:  1. 沙箱公钥【查看】 密钥生成可参照【如何生成RSA,RSA2密钥】  2. 开放平台密钥【查看】,已创建应用的,直接打开对应的应用进行查看, 创建应用可参照:【如何创建应用】 打开应用查...
1744 0
错误: 实例 "ahwater-linux-core" 执行所请求操作失败,实例处于错误状态。: 请稍后再试 [错误: Exceeded maximum number of retries. Exceeded max scheduling attempts 3 for instance 7c1609
错误: 实例 "ahwater-linux-core" 执行所请求操作失败,实例处于错误状态。: 请稍后再试 [错误: Exceeded maximum number of retries. Exceeded max scheduling attempts 3 for instance 7c1609c9-9d0f-4836-85b3-cefd45f942a7.
5413 0
|
9月前
|
JavaScript
Cannot read properties of undefined (reading ‘push‘)“ 报错 解决方法
一.首先这个报错的大致意思就是不能读取这个push方法,顾名思义就是使用这个方法的变量不是一个数组
1107 0
|
9月前
|
JSON Java 数据格式
JSONException: illegal identifier : \pos 1 异常报错问题
JSONException: illegal identifier : \pos 1 异常报错问题
455 0
|
9月前
|
SQL 并行计算 数据库连接
ArcSWAT报错:Error Number :-2147467259; 对 COM 组件的调用返回了错误 HRESULT E_FAIL
ArcSWAT报错:Error Number :-2147467259; 对 COM 组件的调用返回了错误 HRESULT E_FAIL
|
iOS开发 MacOS Python
解决 Sourcetree 报错 Couldn't posix_spawn: error 2 问题
解决 Sourcetree 报错 Couldn't posix_spawn: error 2 问题
1243 0
解决 Sourcetree 报错 Couldn't posix_spawn: error 2 问题
|
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”(已解决)