mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-20 23:09:27 +00:00
beacon/light/sync: check error (#34818)
This commit is contained in:
parent
1149f76dca
commit
4f4bfdbea7
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:
|
case ssDefault:
|
||||||
if resp != nil {
|
if resp != nil {
|
||||||
if checkpoint := resp.(*types.BootstrapData); checkpoint.Header.Hash() == common.Hash(req.(ReqCheckpointData)) {
|
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
|
s.initialized = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue