Skip to content

Commit

Permalink
Fix database error handling in malfeasance syncer (#5941)
Browse files Browse the repository at this point in the history
## Motivation

Database errors were being swallowed in the malfeasance syncer
  • Loading branch information
ivan4th committed May 21, 2024
1 parent ebd84e9 commit 9ac3075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syncer/malsync/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,13 @@ func (s *Syncer) downloadMalfeasanceProofs(ctx context.Context, initial bool, up
sst.done()
if initial && sst.numSyncedPeers() >= s.cfg.MinSyncPeers {
if err := s.updateState(); err != nil {
return nil
return err
}
s.logger.Info("initial sync of malfeasance proofs completed", log.ZContext(ctx))
return nil
} else if !initial && gotUpdate {
if err := s.updateState(); err != nil {
return nil
return err
}
}
select {
Expand Down

0 comments on commit 9ac3075

Please sign in to comment.