Skip to content

Commit

Permalink
fix deadlock that happens when fetching blocks (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Sep 5, 2024
1 parent 3206eca commit 0512b7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions seth/gas_adjuster.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func (m *Client) CalculateNetworkCongestionMetric(blocksNumber uint64, strategy
header, err := getHeaderData(bn)
if err != nil {
L.Error().Err(err).Msgf("Failed to get block %d header", bn.Int64())
wg.Done()
return
}
dataCh <- header
Expand Down

0 comments on commit 0512b7a

Please sign in to comment.