Skip to content

Commit

Permalink
Revert "eth/downloader: fix rare crash when parent header missing in …
Browse files Browse the repository at this point in the history
…db (ethereum#27945)"

This reverts commit a0330ad.
  • Loading branch information
devopsbo3 authored Nov 10, 2023
1 parent 49c5e5d commit 344dc87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/downloader/skeleton.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ func (s *skeleton) processNewHead(head *types.Header, final *types.Header, force
}
if parent := rawdb.ReadSkeletonHeader(s.db, number-1); parent.Hash() != head.ParentHash {
if force {
log.Warn("Beacon chain forked", "ancestor", number-1, "hash", parent.Hash(), "want", head.ParentHash)
log.Warn("Beacon chain forked", "ancestor", parent.Number, "hash", parent.Hash(), "want", head.ParentHash)
}
return true
}
Expand Down

0 comments on commit 344dc87

Please sign in to comment.