mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update eth/downloader/skeleton.go
Co-authored-by: Martin Holst Swende <martin@swende.se>
This commit is contained in:
parent
c8f89eaca7
commit
684ba95702
1 changed files with 1 additions and 5 deletions
|
|
@ -648,11 +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 {
|
||||
ancestor := uint64(0)
|
||||
if parent != nil {
|
||||
ancestor = parent.Number.Uint64()
|
||||
}
|
||||
log.Warn("Beacon chain forked", "ancestor", ancestor, "hash", parent.Hash(), "want", head.ParentHash)
|
||||
log.Warn("Beacon chain forked", "ancestor", number-1, "hash", parent.Hash(), "want", head.ParentHash)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue