君士坦丁堡分叉
2019/12/08
9,069,000
https://blog.ethereum.org/2019/11/20/ethereum-istanbul-upgrade-announcement/
未及时升级parity导致客户端跑到了错误分叉上
怎么办?????????
怎么办?????????
怎么办?????????
1.这取决于您的节点有多少历史记录(--pruning-history)
默认值为64,这意味着您可以parity reset 64用来返回64个块并从那里重试
如果平时没设置,赶紧设置呀!! 等啥哪!
2.如果您的节点超出错误分支上的节点,则唯一的选择是重新同步。
悲催呀,悲催呀,为啥不早看到我这篇文章!没啥,我也悲催过,才愤笔写下这个!!
只针对第一种情况简单说明下
最好 --pruning-history 设置2000 个人经验,硬分叉 一般在分叉高度后1200左右被抛弃
最好 --pruning-history 设置2000 个人经验,硬分叉 一般在分叉高度后1200左右被抛弃
最好 --pruning-history 设置2000 个人经验,硬分叉 一般在分叉高度后1200左右被抛弃
重要的事情说三遍
当然交易频繁时候可能还需要设置
--pruning-memory 默认32 M
升级parity
然后运行
parity db reset 1000 --pruning-history 2000 -config ****
注意这里的1000是往前回滚多少个区块,不是区块高度!!!!
具体数字看你节点最高高度与分叉区块高度之差
解决方案参考
https://github.com/paritytech/parity-ethereum/issues/11315
https://wiki.parity.io/CLI-Sub-commands.html