maticnetwork / bor

Official repository for the Polygon Blockchain
https://polygon.technology/
GNU Lesser General Public License v3.0
1k stars 491 forks source link

ethstats: added error handeling in ethstats.go which prevents node to panic #1249

Closed pratikspatil024 closed 4 months ago

pratikspatil024 commented 4 months ago

Description

Observed that the node panics rarely and this was because error handling was not done properly.

Changes

Breaking changes

Please complete this section if any breaking changes have been made, otherwise delete it

Nodes audience

In case this PR includes changes that must be applied only to a subset of nodes, please specify how you handled it (e.g. by adding a flag with a default value...)

Checklist

Cross repository changes

Testing

Manual tests

Please complete this section with the steps you performed if you ran manual tests for this functionality, otherwise delete it

Additional comments

Please post additional comments in this section if you have them, otherwise delete it