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
630e35ee1f
commit
0a3deb23aa
1 changed files with 1 additions and 1 deletions
|
|
@ -1151,7 +1151,7 @@ func (s *skeleton) cleanStales(filled *types.Header) error {
|
||||||
// The skeleton chain is partially consumed, set the new tail as filled+1.
|
// The skeleton chain is partially consumed, set the new tail as filled+1.
|
||||||
tail := rawdb.ReadSkeletonHeader(s.db, number+1)
|
tail := rawdb.ReadSkeletonHeader(s.db, number+1)
|
||||||
if tail == nil {
|
if tail == nil {
|
||||||
return fmt.Errorf("filled read skeleton header at number %d", number+1)
|
return fmt.Errorf("filled header is missing: %d", number+1)
|
||||||
}
|
}
|
||||||
if tail.ParentHash != filled.Hash() {
|
if tail.ParentHash != filled.Hash() {
|
||||||
return fmt.Errorf("filled header is discontinuous with subchain: %d %s, please file an issue", number, 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