Skip to content

Commit

Permalink
fixed ethstats (#3951)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 authored Apr 24, 2022
1 parent 5e1900c commit 8742141
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ethstats/ethstats.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,9 @@ func (s *Service) reportBlock(conn *connWrapper, block *types.Block) error {
if err != nil {
return err
}
if block == nil {
return nil
}
}

td, err := rawdb.ReadTd(roTx, block.Hash(), block.NumberU64())
Expand Down

0 comments on commit 8742141

Please sign in to comment.