From 4f4bfdbea7c2f987306e5585e6a259ce20af5043 Mon Sep 17 00:00:00 2001 From: cui Date: Tue, 19 May 2026 18:21:43 +0800 Subject: [PATCH] beacon/light/sync: check error (#34818) --- beacon/light/sync/update_sync.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beacon/light/sync/update_sync.go b/beacon/light/sync/update_sync.go index d84a3d64da..b15b967433 100644 --- a/beacon/light/sync/update_sync.go +++ b/beacon/light/sync/update_sync.go @@ -98,7 +98,10 @@ func (s *CheckpointInit) Process(requester request.Requester, events []request.E case ssDefault: if resp != nil { if checkpoint := resp.(*types.BootstrapData); checkpoint.Header.Hash() == common.Hash(req.(ReqCheckpointData)) { - s.chain.CheckpointInit(*checkpoint) + err := s.chain.CheckpointInit(*checkpoint) + if err != nil { + return + } s.initialized = true return }