Skip to content

Commit

Permalink
fetch peer statuses if timeout occurrs
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed May 29, 2024
1 parent 5141415 commit 04f011d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ func (s *syncer) Sync(callback func(*types.FullBlock) bool) error {
s.logger.Debug("new peer status arrived, start syncing")
case <-time.After(blockTimeout):
s.logger.Debug("timeout while waiting for new peer status, start manual syncing")
s.initializePeerMap() // fetch peer statuses just in case
}

// fetch local latest block
Expand Down

0 comments on commit 04f011d

Please sign in to comment.