mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
beacon/light/sync: check error
This commit is contained in:
parent
6ece4cd143
commit
c1674b60cb
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue