Skip to content

Commit

Permalink
Log block hash if watcher fails to read timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley authored and evan-gray committed Sep 19, 2022
1 parent cbce1e7 commit 3fc357e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/pkg/ethereum/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@ func (e *Watcher) Run(ctx context.Context) error {
if err != nil {
ethConnectionErrors.WithLabelValues(e.networkName, "block_by_number_error").Inc()
p2p.DefaultRegistry.AddErrorCount(e.chainID, 1)
errC <- fmt.Errorf("failed to request timestamp for block %d: %w", ev.Raw.BlockNumber, err)
errC <- fmt.Errorf("failed to request timestamp for block %d, hash %s: %w",
ev.Raw.BlockNumber, ev.Raw.BlockHash.String(), err)
return
}

Expand Down

0 comments on commit 3fc357e

Please sign in to comment.