Skip to content

Commit

Permalink
fix deadlock that happens when fetching blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Sep 4, 2024
1 parent 363c82b commit 17a60cf
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 17a60cf

Please sign in to comment.