Update beaconsync.go

This commit is contained in:
CertiK-Geth 2025-07-16 19:59:21 +08:00 committed by GitHub
parent 222db8adf7
commit cfbd22b927
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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