mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
Update skeleton.go
This commit is contained in:
parent
80753ba147
commit
222db8adf7
1 changed files with 3 additions and 0 deletions
|
|
@ -1150,6 +1150,9 @@ func (s *skeleton) cleanStales(filled *types.Header) error {
|
|||
if number < s.progress.Subchains[0].Head {
|
||||
// The skeleton chain is partially consumed, set the new tail as filled+1.
|
||||
tail := rawdb.ReadSkeletonHeader(s.db, number+1)
|
||||
if tail == nil {
|
||||
return fmt.Errorf("filled read skeleton header at number %d", number+1)
|
||||
}
|
||||
if tail.ParentHash != filled.Hash() {
|
||||
return fmt.Errorf("filled header is discontinuous with subchain: %d %s, please file an issue", number, filled.Hash())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue