go-ethereum/ethstats
Daniel Liu 48f93a8cc5
ethstats: prevent panic if head block is not available #29020 (#1453)
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.

Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2025-09-13 10:05:07 +08:00
..
ethstats.go ethstats: prevent panic if head block is not available #29020 (#1453) 2025-09-13 10:05:07 +08:00
ethstats_test.go ethstats: fix URL parser for '@' or ':' in node name/password #21640 (#1446) 2025-09-08 15:38:54 +08:00