君士坦丁堡分叉
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