fixed ethstats (#3951)

This commit is contained in:
Giulio rebuffo 2022-04-24 10:17:33 +02:00 committed by GitHub
parent 5e1900cc48
commit 8742141792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -503,6 +503,9 @@ func (s *Service) reportBlock(conn *connWrapper, block *types.Block) error {
if err != nil { if err != nil {
return err return err
} }
if block == nil {
return nil
}
} }
td, err := rawdb.ReadTd(roTx, block.Hash(), block.NumberU64()) td, err := rawdb.ReadTd(roTx, block.Hash(), block.NumberU64())