go-ethereum/ethstats
rjl493456442 034bc4669f
ethstats: prevent panic if head block is not available (#29020)
This pull request fixes a flaw in ethstats which can lead to node crash

A panic could happens when the local blockchain is reorging which causes the original head block not to be  reachable (since number->hash canonical mapping is deleted). In order to prevent the panic, the block nilness is now checked in ethstats.
2024-02-19 07:25:53 +01:00
..
ethstats.go ethstats: prevent panic if head block is not available (#29020) 2024-02-19 07:25:53 +01:00
ethstats_test.go all: add whitespace linter (#25312) 2022-07-25 13:14:03 +03:00