mirror of https://github.com/ethereum/go-ethereum
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.pull/29024/head
parent
593e303485
commit
034bc4669f
Loading…
Reference in new issue