From cfbd22b9278a8dd65bd630521602aae88e92ed8a Mon Sep 17 00:00:00 2001 From: CertiK-Geth <138698582+CertiK-Geth@users.noreply.github.com> Date: Wed, 16 Jul 2025 19:59:21 +0800 Subject: [PATCH] Update beaconsync.go --- eth/downloader/beaconsync.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/downloader/beaconsync.go b/eth/downloader/beaconsync.go index 33ad0f8971..97930ae480 100644 --- a/eth/downloader/beaconsync.go +++ b/eth/downloader/beaconsync.go @@ -250,6 +250,9 @@ func (d *Downloader) findBeaconAncestor() (uint64, error) { check := (start + end) / 2 h := d.skeleton.Header(check) + if h == nil { + return 0, fmt.Errorf("filled read skeleton header at number %d", check) + } n := h.Number.Uint64() var known bool