mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
log error
This commit is contained in:
parent
c819626be1
commit
303873cf79
1 changed files with 1 additions and 0 deletions
|
|
@ -402,6 +402,7 @@ func (bc *BlockChain) SetHead(head uint64) error {
|
|||
} else {
|
||||
err := bc.repair(&newHeadBlock)
|
||||
if err != nil {
|
||||
log.Error("Failed to set head", "head", head, "err", err)
|
||||
// Rewound block missing, rolled back to genesis
|
||||
newHeadBlock = bc.genesisBlock
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue