LoginSignup
6
4

More than 5 years have passed since last update.

Gethで同期している時に特定のブロックが壊れてしまった時の対策

Last updated at Posted at 2018-01-23

題名通り。
再度同期しなければならないのか... と悩んでたんですが、有識者の方に質問したら「消せばいいんじゃない?」との意見あり気が付きまして、調べたところ方法有りましたのでー。

症状

BAD BLOCK と出ているためブロックが壊れているようだ。

ERROR[01-17|05:30:55]
########## BAD BLOCK #########
Chain config: {ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Engine: ethash}

Number: 4891520
Hash: 0xf1921222bd4ded689c16bdb995744a762e47c45d5f4c4d4ded721ad9ff9a3ab2


Error: nonce too high
##############################

WARN [01-17|05:30:55] Synchronisation failed, dropping peer    peer=9de1cabecb6526cd err="retrieved hash chain is invalid"
ERROR[01-17|05:31:10]
########## BAD BLOCK #########
Chain config: {ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Engine: ethash}

Number: 4891520
Hash: 0xf1921222bd4ded689c16bdb995744a762e47c45d5f4c4d4ded721ad9ff9a3ab2


Error: nonce too high

対策

壊れたブロックを消すか再度同期して正しいものにすればいい。

consoleモードで起動すること。

方法

Headを動かす方法

> debug.setHead('0x16E360')

0x16E360 の箇所はBlockNumberを16進数で書く必要あり。

参考: https://github.com/ethereum/go-ethereum/issues/14435

以上φ('ᴗ'」)

6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4