mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
Update beaconsync.go
This commit is contained in:
parent
222db8adf7
commit
cfbd22b927
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue